2017-10-10 77 views

回答

0

也許這是.translate(projection.origin())

//Setup zoom behavior 
var zoom = d3.behavior 
    .zoom(true) 
    .translate(projection.origin()) 
    .scale(projection.scale()) 
    .scaleExtent([200, 800]) 
    .on("zoom", move);