block by john-guerra 05fafb55db94775db6b40ba62aa02772

d3.geoPath + Canvas + Zoom + Panning

Full Screen

Simple example of how to create a d3v4 map with canvas and zoom+panning. There are two ways of achieving this, one is to scale and pan the canvas (the method implemented here), the second way if you are using a projection is to scale and translate the projection instead

Original Readme:

D3’s d3.geoPath can be used with Canvas, not just SVG! This geometry is from us-atlas.

forked from mbostock‘s block: d3.geoPath + Canvas

index.html