Skip to main content
100%

Dynamic Simplification IV

✓ Published0🌍 Public
Mmbostock
Last edited Nov 20, 2016
Created on Dec 2, 2013

This map of U.S. states shows dynamically simplified geometry that adjusts its level of detail based on zoom, keeping the smallest visible feature roughly one pixel in size. The example uses TopoJSON data with `topojson.presimplify` and a custom `d3.geoTransform` filter based on a minimum area threshold, applied through `d3.geoPath` with Canvas rendering. Zooming is handled by `d3.zoom`, which updates the simplification threshold and redraws filled land polygons and state borders on the canvas.

AI-generated description

This map dynamically simplifies the geometry in response to zooming, so that the smallest displayed detail is approximately one square pixel. Use the mousewheel, or pinch on touch devices, to zoom.

gpl-3.0 Licensed

Similar vizzes