🌍 Public
Viewing a saved revision (read-only)
184b9e7797194aaca1f71d8c59017d2f
Let's make a map with D3.js!
This example demonstrates an interactive map of Dutch municipalities, with each region rendered as a clickable SVG path. It uses D3 v5’s `geoMercator` projection and `geoPath` to draw the map from TopoJSON data fetched via `d3.json`. Users can zoom and pan the map through the `d3.zoom` behavior, while clicking a municipality triggers a placeholder handler. The map loads municipal boundaries from cartomap.github.io, and the code includes a structure for resetting the view and adding tooltips with municipality names.
AI-generated description