python-visualization / folium

Python Data. Leaflet.js Maps.
https://python-visualization.github.io/folium/
MIT License
6.86k stars 2.22k forks source link

ImageOverlay moves with higher zoom level #433

Closed mccarthyryanc closed 8 years ago

mccarthyryanc commented 8 years ago

At a really high zoom level, the image with change position. Behavior is visible in examples: http://nbviewer.jupyter.org/github/ocefpaf/folium_notebooks/blob/master/test_image_overlay_gulf_stream.ipynb

Easiest to see the behavior when zooming into the coastline in the first map.

ocefpaf commented 8 years ago

I am not sure there is anything we can do to solve that. Ideally we should re-project new image at every-level, like the tiles, but that is unfeasible for such a simple method. Thanks for the report but I am, sadly, closing this as a won't fix.

mccarthyryanc commented 8 years ago

Understood. I am new to Leaflet/folium and after some reading I completely agree. However, if anyone manages to stumble onto this issue, I managed to get what I wanted by using the Leaflet.ImageOverlay.Rotated plugin. It might be a bit overkill as I didn't need the rotation feature, but it worked.

ocefpaf commented 8 years ago

Cool. Are you interested in add that plugin to folium :wink: ? Take a look at some of the current plugins as a starting point.