Function: GeoVisMarker()
GeoVisMarker(
__namedParameters):ReactPortal|null
Defined in: ui/GeoVisMarker.tsx:43
Renders a MapLibre GL Marker pinned to the last clicked feature's
geographic coordinates (lngLat). The marker is added on click and removed
automatically when the click is cleared (Escape or outside click).
Supports three rendering modes:
- children — arbitrary React JSX rendered inside a container div
- element — pre-existing
HTMLElementpassed directly to MapLibre - color — built-in SVG pin tinted with the given colour
Must be rendered inside <GeoVisProvider>.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | GeoVisMarkerProps |
Returns
ReactPortal | null