javascript - SVG image not aligning on zoom with leaflets -


i have below code display svg file on base map. not retaining portion on zoom , transform being added every zoom causes svg move further away position.

i have co-ordinates svg json.

function update() { feature.attr("transform", function(d) { return "translate("+ (map.latlngtolayerpoint(d.latlng).x) +","+ (map.latlngtolayerpoint(d.latlng).y) +")"; } ); } 


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -