Tag Info

New answers tagged


If I change the zoom variable to the following, it works also in Firefox: var zoom = d3.behavior.zoom().on("zoom", function() { dptos.attr("transform", "translate(" + d3.event.translate + ")" + " scale(" + d3.event.scale + ")"); }); I hope it helps.


You need to update your paths in the zoomed function. The original example does this on line 68. The simplest thing to do is to use the counties variable store a reference to the selection of paths: counties = topojson.feature(us, us.objects.barrios); counties = svg.selectAll("path") .data(counties.features) .enter() .append("path") ...

Top 50 recent answers are included