Hook to get the MapData and MapView from the current MapView context.
Must be used within a MapView component.
If used outside of a MapView component.
const { mapData, mapView } = useMap(); Copy
const { mapData, mapView } = useMap();
Hook to get the MapData and MapView from the current MapView context.
Must be used within a MapView component.