Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -464,7 +464,7 @@ def get_map_from_summary(summary_txt):
|
|
464 |
# print('ok. folium map')
|
465 |
|
466 |
map = folium.Map(location=[avg_lat, avg_lng], zoom_start=12)
|
467 |
-
fg = folium.FeatureGroup(
|
468 |
folium.Marker(location=[float(lat), float(lng)],
|
469 |
icon=folium.Icon(color='red'),
|
470 |
popup="Incident"
|
@@ -521,7 +521,7 @@ async def a_get_map_from_summary(summary_txt, get_num_cameras=3):
|
|
521 |
avg_lng = np.mean(cameraimg_df["Longitude"])
|
522 |
|
523 |
map = folium.Map(location=[avg_lat, avg_lng], zoom_start=12)
|
524 |
-
fg = folium.FeatureGroup(
|
525 |
folium.Marker(location=[float(lat), float(lng)],
|
526 |
icon=folium.Icon(color='red'),
|
527 |
popup="Incident"
|
|
|
464 |
# print('ok. folium map')
|
465 |
|
466 |
map = folium.Map(location=[avg_lat, avg_lng], zoom_start=12)
|
467 |
+
fg = folium.FeatureGroup().add_to(map)
|
468 |
folium.Marker(location=[float(lat), float(lng)],
|
469 |
icon=folium.Icon(color='red'),
|
470 |
popup="Incident"
|
|
|
521 |
avg_lng = np.mean(cameraimg_df["Longitude"])
|
522 |
|
523 |
map = folium.Map(location=[avg_lat, avg_lng], zoom_start=12)
|
524 |
+
fg = folium.FeatureGroup().add_to(map)
|
525 |
folium.Marker(location=[float(lat), float(lng)],
|
526 |
icon=folium.Icon(color='red'),
|
527 |
popup="Incident"
|