Gist 88815dae2f6167aea4e388194e61857a
✓ Published0🌍 Public
FFrieseWoudloper
Last edited Sep 14, 2019
Created on Sep 14, 2019
This example shows a choropleth-style map of Dutch police districts, with hover interactions that reveal the district name in a tooltip. The visualization loads geographic boundary data from a national geo-service via WFS, processes it with Turf.js to rewind polygon coordinates, and renders it as SVG paths using D3’s geoMercator projection and geoPath. Hovering a district turns it orange and displays a floating label, while mouseout fades the tooltip away. The code relies on D3 v3 for SVG manipulation and event handling, with Turf.js for geometry correction before projection.
AI-generated description