block by mbostock 5342063

Raster & Vector II

Full Screen

Using d3-tile to display raster image tiles underneath some TopoJSON vectors, and d3-zoom for pan & zoom. This version reprojects the geometry on interaction; compare to updating the transform. See another variation of this example with points, showing the U.S. State Capitals; also see the static version.

Tiles copyright OpenStreetMap contributors.

Updated Example →

index.html