Skip to main content

Advanced markers

A marker with advancedOptions is rendered as an Advanced Marker (Android, iOS).

  • Map ID: set mapOptions.mapId. DEMO_MAP_ID works for testing.
  • Availability: onMapReady reports whether Advanced Markers are available, onMapCapabilitiesChange reports a later change. While they are not available, the marker is rendered as a standard marker and pinConfig has no effect.
  • Collision behavior: collisionBehavior decides whether the marker hides other markers and map labels or is hidden by them. A change re-creates the marker.
  • Pin: pinConfig sets the background, border and glyph of the default pin. The glyph is one of iconSvg, text or color, in that order.
  • Icon: iconSvg takes precedence over pinConfig. 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.