block by mbostock 4132797

Zoomable Map Tiles

Full Screen

A demo of the d3.geo.tile plugin, which determines which 256x256 tiles are visible in the viewport based on a scale and translate. This demo combines the tile plugin with d3.behavior.zoom for panning and zooming, resulting in a a simple slippy map. Based partly on an example by Tom MacWright.

Tiles copyright OpenStreetMap contributors.

Updated Example →

index.html

d3.geo.tile.min.js