Skip to main content

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 HTMLElement passed directly to MapLibre
  • color — built-in SVG pin tinted with the given colour

Must be rendered inside <GeoVisProvider>.

Parameters

ParameterType
__namedParametersGeoVisMarkerProps

Returns

ReactPortal | null