Skip to main content

BaseMapProps

BaseMapProps = DeckglProps & object

Props for the BaseMap component. Extends all Deck.gl props and adds additional map-specific properties.

Type Declaration

className?

optional className: string

Optional CSS class name to apply to the map container element

id

id: UniqueId

Unique identifier for this map instance (required).

Used to isolate map mode state between multiple map instances (e.g., main map vs minimap). This should be a UUID generated using uuid() from @accelint/core.

The same id should be passed to useMapMode() when accessing map mode state from components rendered outside of the BaseMap's children (i.e., as siblings).