block by davo 5094476


Full Screen

The Issue

I’m trying to build a map that can be zoomed using the mouse wheel and panned with drag. For that I’m using d3.behavior.zoom() and it works fine for the map. However, I also need to mark some points in the map (which are included in the same topojson used to draw the map). They get rendered just fine, but I’m having trouble handling the zoom behaviour with these points. If you try to zoom or pan, the points get translated abruptly and even seem to change their path!

Any ideas?