Hook to load and access a map by its ID.
The unique identifier of the map to load
A MapLoadResult object with status "pending", "success", or "error"
const mapLoadResult = useMap("your-map-id");if (mapLoadResult.status === "success") { return <MapView map={mapLoadResult.map} />;} Copy
const mapLoadResult = useMap("your-map-id");if (mapLoadResult.status === "success") { return <MapView map={mapLoadResult.map} />;}
Hook to load and access a map by its ID.