Spaces:
Sleeping
Sleeping
restore marker
Browse files
app.py
CHANGED
@@ -275,12 +275,12 @@ def main():
|
|
275 |
lng = map_data['last_clicked']['lng']
|
276 |
|
277 |
# Clear previous markers and add new one
|
278 |
-
|
279 |
-
|
280 |
-
|
281 |
-
|
282 |
-
|
283 |
-
|
284 |
|
285 |
st.write(f"Selected coordinates: {lat:.4f}, {lng:.4f}")
|
286 |
|
|
|
275 |
lng = map_data['last_clicked']['lng']
|
276 |
|
277 |
# Clear previous markers and add new one
|
278 |
+
marker_group.clear()
|
279 |
+
marker_group.add_child(folium.Marker(
|
280 |
+
[lat, lng],
|
281 |
+
popup=f"Selected Location\n{lat:.4f}, {lng:.4f}",
|
282 |
+
icon=folium.Icon(color="red", icon="info-sign")
|
283 |
+
))
|
284 |
|
285 |
st.write(f"Selected coordinates: {lat:.4f}, {lng:.4f}")
|
286 |
|