Function: GeoVisMarker()
GeoVisMarker(
__namedParameters):ReactPortal|null
Defined in: ui/GeoVisMarker.tsx:48
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 — geovis's pin (the drop
spec.imagespins wear) in the given colour; also what is drawn when no mode is chosen
Must be rendered inside <GeoVisProvider>.
Parameters
| Parameter | Type |
|---|---|
__namedParameters | GeoVisMarkerProps |
Returns
ReactPortal | null