[Working with spatial data](https://github.com/enjalot/wwsd)
This example shows a basic Leaflet map of world countries loaded from a GeoJSON file, with each country rendered as a white, semi-transparent polygon. It demonstrates the first step of styling spatial data with Leaflet’s `L.geoJson` and a custom style function. The map uses an OpenStreetMap tile layer and a D3.js `d3.json` request to fetch the country boundaries. The code sets the map view to a global extent, applies a simple fill color and opacity, and adds the GeoJSON layer to the map, following the Leaflet choropleth guide.
AI-generated descriptionWorking with spatial data
Example #2
Basic styling with Leaflet. Following this Choropleth guide.
Built with blockbuilder.org
forked from <a href='http://bl.ocks.org/enjalot/'>enjalot</a>'s block: <a href='http://bl.ocks.org/enjalot/5c780d3df8da2ecceebf117a9ac7be38'>WWSD #1: Leaflet starter</a>
forked from <a href='http://bl.ocks.org/enjalot/'>enjalot</a>'s block: <a href='http://bl.ocks.org/enjalot/208dd99b6ed6a424513524d963880700'>WWSD #1-a: Leaflet Rivers</a>
forked from <a href='http://bl.ocks.org/enjalot/'>enjalot</a>'s block: <a href='http://bl.ocks.org/enjalot/0c8028933d402fb4823a5b0067b12a56'>WWSD #2-a: Leaflet Choropleth</a>
forked from <a href='http://bl.ocks.org/enjalot/'>enjalot</a>'s block: <a href='http://bl.ocks.org/enjalot/14d410e0a52909684bc020dccd08c591'>WWSD #2: Leaflet Basic Styling</a>