Skip to main content

Interface: GeoVisMarkerProps

Defined in: ui/GeoVisMarker.tsx:12

Properties​

children?​

optional children?: ReactNode

Defined in: ui/GeoVisMarker.tsx:30

React content rendered inside the marker container. When provided, a div container is created and passed to maplibregl.Marker as the custom element. color and element props are ignored.


className?​

optional className?: string

Defined in: ui/GeoVisMarker.tsx:32

CSS class applied to the React children wrapper inside the marker container.


color?​

optional color?: string

Defined in: ui/GeoVisMarker.tsx:17

Colour of geovis's pin, drawn when neither children nor element is provided. Default: '#3FB1CE'.


element?​

optional element?: HTMLElement

Defined in: ui/GeoVisMarker.tsx:22

Pre-existing HTML element used as the marker. When provided, color is ignored. Incompatible with children — if both are given, children wins.


offset?​

optional offset?: [number, number]

Defined in: ui/GeoVisMarker.tsx:24

Pixel offset [x, y] applied to the marker position.