Forward-compatibility escape hatch for engine-specific options.
OptionaltitleAccessible title for the marker (tooltip / screen reader).
OptionalaltAlt text for the marker icon image.
OptionalopacityMarker opacity. Range: 0 … 1.
OptionaldraggableWhether the marker can be repositioned by the user.
OptionaliconSVG icon string.
OptionaliconIcon size in pixels as [width, height].
OptionaliconPixel offset from the icon top-left corner to the geographic anchor point.
OptionalclassCSS class(es) applied to the marker element (space-separated). Use this
instead of inline styles so the marker can be themed via a stylesheet
under a strict CSP (style-src without 'unsafe-inline', roadmap B.5).
OptionalrotationRotation of the marker icon, in degrees clockwise. Interpreted against GeoLeafMarkerOptions.rotationAlignment.
OptionalrotationWhat the rotation is measured against.
🛑 "map" is the one that matters, and it buys something no caller can reproduce
cheaply: the engine RE-APPLIES rotation − mapBearing on every rendered frame. A caller
computing that angle itself, once per position fix, freezes the icon while the map is
still turning — through a 90° corner it points 90° wrong for the whole turn, which is
precisely when someone is looking at it. "viewport" pins the icon to the screen.
Options for creating a map marker.
Security note on
icon: Theiconfield must be a static, hardcoded SVG string authored by the module developer. Never assign content that originates from user input, network responses, or profile data — doing so creates an XSS vector via SVG injection.