Skip to main content
100%

[Working with spatial data](https://github.com/enjalot/wwsd)

✓ Published0🌍 Public
AAlan McConchie
Last edited Jun 9, 2017
Created on Jun 4, 2017

A choropleth map of UK counties, rendered with Mapbox GL, displays geographic boundaries filled in cyan with dark outlines. The example loads GeoJSON county data via `d3.json` and adds it as a Mapbox GL GeoJSON source, then applies a fill layer with specified paint properties. It adapts a mapbox-gl-js example and uses D3 v3 for data fetching alongside the Mapbox GL JavaScript API.

AI-generated description

Working with spatial data

Example #3

Getting started with Mapbox-gl

Adapted from the mapbox-gl example. Built with blockbuilder.org

NOTE: here we placed the labels on top of the GeoJSON layer. More info about how to do that is here

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>

mit Licensed

Similar vizzes