Difference between revisions of "Test"
Jump to navigation
Jump to search
Line 25: | Line 25: | ||
// load GeoJSON from an external file | // load GeoJSON from an external file | ||
− | fetch(" | + | fetch("usa.geojson").then(res => res.json()).then(data => { |
// add GeoJSON layer to the map once the file is loaded | // add GeoJSON layer to the map once the file is loaded | ||
L.geoJson(data).addTo(map); | L.geoJson(data).addTo(map); |
Revision as of 08:35, 25 February 2022