Automatically draw an area on map load


The plugin provides the possibility to automatically draw areas once the map is loaded. We call this, “Pre-Drawn areas”. This feature will allow you to add areas & start a search request once the map is loaded. Please note that it is not required to provide a Pre-Drawn area, users can draw their areas using the drawing tools.

To create a Pre-Drawn area, do the following:

  1. Edit your map
  2. Scroll down to the widget “Draw a Search Settings” and click on the menu “Draw a map search”.
  3. Click on the group field “Area 1”.
  4. In the field “Area name”, enter your area name. For example “London, UK”.
  5. In the field “Polygon Paths”, enter the ordered sequence of coordinates of the Polygon/Area. You need to put each line segment (LatLng) as [Lat,Lng] or [Lng,Lat] seperated by comma. For example [45.5215,-1.5245],[41.2587,-1.2479],[40.1649,-1.9879]
  6. In the field “LatLngs order”, select the syntaxe you’ve followed to enter the coordinates of this Polygon/Area.
  7. In the field “Visibility”, select the option “Show”.
  8. To add a new area, click on the button “Add new area”.

In the same context