Map Pan & Zoom IV
✓ Published0🌍 Public
Mmbostock
Last edited Feb 9, 2016
Created on Jul 7, 2014
This example demonstrates fast map panning and zooming on a Canvas. It uses pre-projected geometry from a `world.json` file, rendered via d3.geo.path. Pan and zoom use `d3.behavior.zoom`, with dynamic simplification via a custom `d3.geo.transform` and viewport clipping via `d3.geo.clipExtent`. The map shows country boundaries and a sphere outline.
AI-generated descriptionThis example uses d3.behavior.zoom with pre-projected geometry for map panning and zooming, in conjunction with dynamic simplification and viewport clipping. This approach is quite fast, but more work to implement than an SVG transform.
gpl-3.0 Licensed