Line 116: | Line 116: | ||
start = [0, 27.5] | start = [0, 27.5] | ||
− | //Setup zoom behavior | + | //Setup zoom behavior |
− | var zoom = d3.behavior.zoom( | + | var zoom = d3.behavior.zoom(true) |
+ | .translate(projection.origin()) | ||
+ | .scale(projection.scale()) | ||
+ | .scaleExtent([250, 3000]) | ||
+ | .on("zoom", move); | ||
var circle = d3.geo.greatCircle(); | var circle = d3.geo.greatCircle(); |
Revision as of 12:25, 31 October 2017