Center latitude of the map camera.
Center longitude of the map camera.
Camera distance from the center point in meters.
The map rendering style.
Which interaction modes are enabled. Defaults to all modes.
Map controls to display. Omit for system defaults, pass
[] to hide all controls.Whether to show the user’s location as a blue dot on the map.
onCameraChange
(camera: { latitude: number; longitude: number; distance: number; heading: number; pitch: number }) => void
Callback fired when the camera position changes.
How often the
onCameraChange callback fires. "onEnd" fires only when the user stops moving the camera, "continuous" fires during movement.Callback fired when a tagged marker or annotation is selected. Receives
null on deselection.Map content such as Marker, Annotation, MapCircle, MapPolyline, and MapPolygon components.
Support
Usage
Basic map
Map with markers
Satellite map with controls
Map with camera tracking
Map with selection
See Also
- Marker — map pin marker
- Annotation — custom map annotation
- MapCircle — circle overlay
- MapPolyline — polyline overlay
- MapPolygon — polygon overlay