streamlit-folium icon indicating copy to clipboard operation
streamlit-folium copied to clipboard

Longitude out of range

Open Daniel-Trung-Nguyen opened this issue 1 year ago • 3 comments

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}}

Daniel-Trung-Nguyen avatar Oct 23 '23 23:10 Daniel-Trung-Nguyen

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

blackary avatar Dec 08 '23 17:12 blackary

@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

Daniel-Trung-Nguyen avatar Dec 10 '23 07:12 Daniel-Trung-Nguyen