Map
Mapbox GL map with markers, popups and controls; loaded on demand.
Installation
bun add @xerobi/ui
import { Map, MapControls, MapMarker, MapPopup } from "@xerobi/ui/map"This component is client-side. In Astro, hydrate it with a client directive.
API reference
Map
| Prop | Type | Description |
|---|---|---|
| className | string |
MapControls
| Prop | Type | Description |
|---|---|---|
| hideScale | boolean | |
| hideGeolocate | boolean | |
| hideFullscreen | boolean | |
| hideNavigation | boolean | |
| slotProps | { scale?: ScaleControlProps | undefined; geolocate?: GeolocateControlProps | undefined; fullscreen?: FullscreenControlProps | undefined; navigation?: Navigat... |
MapMarker
No props of its own.
MapPopup
No props of its own.