Advanced markers
A marker with advancedOptions is rendered as an Advanced Marker
(Android,
iOS).
- Map ID: set
mapOptions.mapId.DEMO_MAP_IDworks for testing. - Availability:
onMapReadyreports whether Advanced Markers are available,onMapCapabilitiesChangereports a later change. While they are not available, the marker is rendered as a standard marker andpinConfighas no effect. - Collision behavior:
collisionBehaviordecides whether the marker hides other markers and map labels or is hidden by them. A change re-creates the marker. - Pin:
pinConfigsets the background, border and glyph of the default pin. The glyph is one oficonSvg,textorcolor, in that order. - Icon:
iconSvgtakes precedence overpinConfig. An SVG that fails to render leaves the icon empty, the pin is not used as a fallback.
Not available with the legacy map renderer on Android, see Limitations.