Customize the area style


To change the area/polygon colors and opacity, 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. To change the style used when starting to add new polygons to the map, click on the group field “Add New” Polygon style and change in the settings available inside the group field.
  4. To change the style used when when starting to edit existing polygons, click on the group field “Edit” Polygon style and change in the settings available inside the group field.
  5. To change the style used when statring to delete polygons from the map, click on the group field “Delete” Polygon style and change in the settings available inside the group field.
  6. To change the style used when highlighting an existing polygon on the map, click on the group field “Highlight” Polygon style and change in the settings available inside the group field.

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”.

Opening the drawing tools area on map load


To automatically open the drawing tools area once the map is loaded, do the following:

  1. Edit your map
  2. Scroll down to the widget “Draw a Search Settings” and cick on the menu “Draw a map search”.
  3. In the field “Display status”, select the option “Yes”.