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