Skip to main content
Version: next

Maps

This reference explains how to use the Map component.

The goal is to choose one to make sure that all maps across the website look the same.

Since version 3.10

Component Props

We have homogenized the props of the map components to make sure that they are consistent across different components.

Map Component

PropertyDescriptionType
locationsA list of locations used for the markersTLocation[]
getMarkerThe marker node for locations(location) => ReactNode
zoomDefault zoom levelnumber
defaultBoundsThe default map boundsTCoordinates[]
defaultCenterThe default center for the map.TCoordinates
onBoundsChangedEvent handler for bound changes(event) => void

Marker Component

PropertyDescriptionType
locationLocation for the markerTLocation
iconAllows you to override the marker iconobject
isPopupOpenedControlled method for marker popupboolean
onClickEvent handler on marker click(event) => void