Skip to content

Polygon Map

The Polygon Map field type lets users draw, edit, and store polygon shapes directly on an EspoCRM record. The field stores polygon data as JSON and supports configurable default center coordinates, search, and fill or stroke styling.

Polygon drawn on a map inside an EspoCRM record


Field Parameters

In addition to standard field options such as read-only or audited, Polygon Map supports these map-specific parameters:

Parameter Description
Map Center Default center of the map in the format latitude|longitude, for example 40.40|34.50.
Enable Search Shows a Google Places search box so users can move the map to a searched place before drawing.
Stroke Color Polygon border color.
Fill Color Polygon fill color.
Stroke Opacity Polygon border opacity.
Fill Opacity Polygon fill opacity.
Stroke Weight Polygon border width in pixels.

User Actions

In edit mode, users can:

  • Search for a place and recenter the map
  • Use the current-location button to move the map to the user's position
  • Draw polygons directly on the map
  • Drag polygons after drawing them
  • Remove vertices with right-click

When no polygon exists yet, the map centers on Map Center and shows a marker at that starting point.


Adding a Polygon Map Field

  1. Navigate to Administration -> Entity Manager.
  2. Open the target entity.
  3. Click Fields -> Add Field.
  4. Set Type to Polygon Map.
  5. Configure the field parameters.
  6. Save the field and add it to the layout.

Polygon Map field configuration in Entity Manager


See Also