streamlit-folium
streamlit-folium copied to clipboard
Scrolling in one direction causing build up in lng variables
When scrolling even on the example the lng builds up when you warp around the world.
This is my first time posting an issue anywhere please let me know if I need include any other information.
Hi @wrenchInTheWorks -
When you say "build up", you're talking about the values being outside of the -180, 180 bounds?
It appears this is the default behavior in leaflet (the library that Folium wraps, that we wrap for this package 😅):
https://stackoverflow.com/questions/18063278/leaflet-getbounds-returning-longitudes-greater-than-180
@blackary, I'm not sure I even understand why you'd not want to wrap the values. Do you think we should add a keyword argument to st_folium?
Hi Randy, Apologies for not getting back to you.
Yes, I was informed by my flatmate who is a geographer this is quite common for maps to do, my apologies for creating a fuss.
@blackary, I'm not sure I even understand why you'd not want to wrap the values. Do you think we should add a keyword argument to
st_folium?
I'm passing values from a drawn box on the map to open topography which needs wrapped coordinates to download DEMs.
I will wrap the values in my code.
Cheers, Michael
No bother at all, it's definitely a weird default!
Turns out, this is the same as #145