[Working with spatial data](https://github.com/enjalot/wwsd)
This example demonstrates how to load and display GeoJSON polygon data on an interactive Mapbox-gl map. It fetches UK county boundaries from an external URL using d3.json, then adds them as a fill layer with a teal color and dark outline. The map initializes with Mapbox’s streets style, centered on the UK, and the code uses the Mapbox-gl API’s `addSource` and `addLayer` methods to render the spatial data. D3 v3 handles the data request, while Mapbox-gl manages the map rendering and interaction.
AI-generated descriptionWorking with spatial data
Example #3
Getting started with Mapbox-gl
Adapted from the mapbox-gl example. Built with blockbuilder.org
forked from <a href='http://bl.ocks.org/enjalot/'>enjalot</a>'s block: <a href='http://bl.ocks.org/enjalot/b81e02d752855d106f88a9c0e42e65a0'>WWSD #3: Getting started Mapbox-gl</a>