Skip to main content
100%

Swiss Cantons & Lakes

✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Apr 7, 2014

A map of Switzerland displays gray canton boundaries and semi-transparent blue lakes, highlighting consistent borders where the two coincide. The visualization renders geographic data as SVG paths using `d3.geo.path` and `topojson.feature`, with `topojson.mesh` drawing white canton boundaries. Canton and lake shapes come from a pre-processed `ch.json` TopoJSON file, built from swiss-maps data via `topojson-merge` to ensure shared boundaries align. Hovering over any feature turns it orange.

AI-generated description

This example shows how to create canton boundaries consistent with lake boundaries using topojson-merge. To avoid losing information, --no-quantization is used when creating the initial unmerged topologies. Data from interactivethings/swiss-maps.

gpl-3.0 Licensed

Similar vizzes