Skip to main content
100%

Map Pan & Zoom I

✓ Published0🌍 Public
AAlan McConchie
Last edited Mar 25, 2018
Created on Mar 25, 2018

This map visualization shows a world map with country boundaries that can be panned and zoomed via mouse interaction. It uses d3.behavior.zoom with SVG transforms to apply translate and scale operations to the map group. The map is rendered using d3.geo.path with a Mercator projection, drawing landmasses as merged TopoJSON polygons and boundaries as meshes. Geographic data comes from a TopoJSON world-50m file hosted in a GitHub gist, with zoom scale restricted between 1x and 8x.

AI-generated description

This example uses d3.behavior.zoom with SVG transforms for map panning and zooming.

forked from <a href='http://bl.ocks.org/mbostock/'>mbostock</a>'s block: <a href='http://bl.ocks.org/mbostock/8fadc5ac9c2a9e7c5ba2'>Map Pan & Zoom I</a>

gpl-3.0 Licensed

Similar vizzes