useGeoJSON(url[, data])
useGeoJSON(url)
loads GeoJSON data from the specified URL (via useEffect()
), triggering a second render when the data loads.
const geojson = useGeoJSON(url, data);
useGeoJSON(url)
loads GeoJSON data from the specified URL (via useEffect()
), triggering a second render when the data loads.
const geojson = useGeoJSON(url, data);