streamlit-folium
streamlit-folium copied to clipboard
Longitude out of range
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}}
Can you please provide a reproducible script which shows this issue?
@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