Add a custom overlay containing additional information on top of the map in the form points (circles, markers, labels), lines, and polygons.
This parameter provides a way to encode GeoJSON geometries by using a compact format optimized to reduce request size. For more information, see Compact overlay encoding.
Format: geometryType ":" geometry [";" properties] { "|" geometry [";" properties] } ["|" globalProperties]
geometryType = "point" | "multiPoint" | "line" | "multiLine" | "polygon" | "multiPolygon"
geometry = point | multiPoint | line | multiLine | polygon | multiPolygon
point = latitude "," longitude
multiPoint = line
line = (point { "," point }) | flexiblePolyline
multiLine = line {";" line}
polygon = multiLine
multiPolygon = polygon { ";;" polygon }
globalProperties = properties
properties = propertyName "=" propertyValue { ";" propertyName "=" propertyValue }
Only a single geometry type is supported within an overlay parameter instance. To specify multiple different geometry types, add multiple instances of the overlay parameter.
The geometry is defined by a list of geo coordinates. The number of coordinate pairs that are required for the ovelay parameter depends on the geometry type that parameter represents.
Flexible polyline provides the alternative and more compact way of representing the multiPoint and line geometries.
The geometry is followed by the properties. Properties comprise of name = value pairs, separated by ";". The list of valid properties depends on the geometry type and is used to control its appearance.
You can specify multiple features of a single geometry type in an overlay parameter value. The features are separated by the "|" character. If the last feature contains no geometry it is interpreted as globalProperties. The global properties are applied to all features. For more information, see Shared style properties.