All predefined areas can have a default style. The style will apply when drawing the areas on the map. To set and/or customize the predefined areas style, do the following:
- Edit your map.
- Scroll down to the section “Draw a Search Settings” and click on the menu “Predefined areas search”.
- Scroll down to the section “Areas default style”.
- Use the fields “Fill color”, “Stroke color”, “Fill opacity”, “Stroke opacity”, “Stroke weight” and “Stroke position” to set & customize the predefined areas style.
To hide a group of areas from the predefined areas list, do the following:
- Edit your map
- Scroll down to the widget “Draw a Search Settings” and click on the menu “Predefined areas settings”.
- Scroll down to the section “Area groups” and edit your areas group by clicking on its related group field.
- In the field “Visibility”, select the option “Hide group only” to hide the group name from the predefined areas list. This won’t hide the group’s related areas. To hide the group and all its related areas, select the option “Hide group and all related areas”.
To add/assign a predefined area to a group of areas, do the following:
- Edit your map
- Scroll to the widget “Draw a Search Settings” and click on the menu “Predefined areas settings”.
- Scroll down to the section “Areas” and edit your area by clicking on its related group field.
- In the field “Area group”, select the group to which you want to assing your area.
The plugin provides the possibility to split your predefined areas list into groups. Each group will contain a set of areas. To create a group of predefined areas, do the following:
- Edit your map
- Scroll to the widget “Draw a Search Settings” and click on the menu “Predefined areas settings”.
- Scroll down to the section “Area groups” and click on the group field “Group 1”.
- Enter the group name in the field “Group name”.
- In the field “Visibility”, select the option “Show”.
To add a new predefined area, do the following:
- Edit your map.
- Scroll down to the widget “Draw a Search Settings” and click on the group field “Predefined areas search”.
- Scroll down to the section “Areas” and click on the group field “Area 1”.
- In the field “Area name”, enter your area name. For example “London, UK”.
- In the field “Area group”, assing your area to a group of areas if you need to, otherwise, select the option “None”.
- 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]
- In the field “LatLngs order”, select the syntaxe you’ve followed to enter the coordinates of this Polygon/Area.
- In the field “Visibility”, select the option “Show”.
- In the field “Area/Polygon style”, choose whether you want to use the default polygon/area style or that you want to use a customized style for this particular area.
- If you want to use a customized style for your area, use the fields “Fill color”, “Stroke color”, “Fill opacity”, “Stroke opacity”, “Stroke weight” and “Stroke position”.
- To add a new area, click on the button “Add new area”.
To increase or decrease the predefined areas list width and to change list placeholder, do the following:
- Edit your map
- Scroll down to the widget “Draw a Search Settings” and click on the menu “Predefined areas search”.
- In the field “Search field width”, change the list width.
- In the field “Search field placeholder”, change the list placeholder.
Users can select one or multiple predefined areas in the list. The default behavior is single area search. To allow multiple areas search, do the following:
- Edit your map
- Scroll down to the widget “Draw a Search Settings” and click on the menu “Predefined areas search”.
- In the field “Search by multiple areas”, select the option “Yes”.
To automatically open the predefined areas list once the map is loaded, do the following:
- Edit your map
- Scroll down to the widget “Draw a Search Settings” and click on the menu “Predefined areas search”.
- In the field “Display status”, select the option “Yes”.
To add the predefined areas list to your map, do the following:
- Edit your map
- Scroll down to the widget “Draw a Search Settings” and click on the menu “Predefined areas search”.
- In the field “Predefined areas search option”, select the option “Yes”.