• Hook to get the MapData and MapView from the current MapView context.

    Must be used within a MapView component.

    Returns { mapData: MapData; mapView: MapView }

    If used outside of a MapView component.

    const { mapData, mapView } = useMap();