Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Longitude out of range #145

Open
Daniel-Trung-Nguyen opened this issue Oct 23, 2023 · 3 comments
Open

Longitude out of range #145

Daniel-Trung-Nguyen opened this issue Oct 23, 2023 · 3 comments

Comments

@Daniel-Trung-Nguyen
Copy link

Hi,
I encountered out of range (-180, 180) for longitude when clicking anywhere on the base map outside of America.
The map_data dict is provided below.
Thanks,
Daniel

{'last_clicked': {'lat': 33.32536477421004, 'lng': -283.24951171875006}, 'last_object_clicked': None, 'last_object_clicked_tooltip': None, 'last_object_clicked_popup': None, 'all_drawings': None, 'last_active_drawing': None, 'bounds': {'_southWest': {'lat': -20.587152620582795, 'lng': -293.97216796875006}, '_northEast': {'lat': 64.18934150700069, 'lng': -223.65966796875003}}, 'zoom': 3, 'last_circle_radius': None, 'last_circle_polygon': None, 'center': {'lat': 30.187276619492078, 'lng': -258.81591796875006}}

@blackary
Copy link
Collaborator

blackary commented Dec 8, 2023

Can you please provide a reproducible script which shows this issue?

@Daniel-Trung-Nguyen
Copy link
Author

@blackary Here is the script. Lat/Long was correct in the US but not in China
Versions:
streamlit 1.27.2
streamlit-folium 0.15.0
image

image

@Sakatoku
Copy link

I have confirmed that this issue can be reproduced by map scrolling operation that goes around the world.
Streamlit: 1.37.1
streamlit-folium: 0.22.0
folium: 0.17.0
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants