Borya-Goldarb commited on
Commit
4948ae6
1 Parent(s): b793f42

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -13
app.py CHANGED
@@ -58,20 +58,20 @@ for index, row in filtered_data.iterrows():
58
 
59
  # Create a DivIcon with custom HTML content
60
  icon = folium.DivIcon(html=html_content)
61
- marker = folium.Marker([row['latitude'], row['longitude']], popup=row['Name'], icon=icon)#.add_to(m)
62
 
63
- #add to groups
64
- marker.add_to(all_markers)
65
- if index%2==0:
66
- marker.add_to(active_markers)
67
- else:
68
- marker.add_to(inactive_markers)
69
-
70
-
71
- # Add layers to the map
72
- all_markers.add_to(m)
73
- active_markers.add_to(m)
74
- inactive_markers.add_to(m)
75
 
76
  # Add layer control to toggle marker visibility
77
  folium.LayerControl().add_to(m)
 
58
 
59
  # Create a DivIcon with custom HTML content
60
  icon = folium.DivIcon(html=html_content)
61
+ marker = folium.Marker([row['latitude'], row['longitude']], popup=row['Name'], icon=icon).add_to(m)
62
 
63
+ # #add to groups
64
+ # marker.add_to(all_markers)
65
+ # if index%2==0:
66
+ # marker.add_to(active_markers)
67
+ # else:
68
+ # marker.add_to(inactive_markers)
69
+
70
+
71
+ # # Add layers to the map
72
+ # all_markers.add_to(m)
73
+ # active_markers.add_to(m)
74
+ # inactive_markers.add_to(m)
75
 
76
  # Add layer control to toggle marker visibility
77
  folium.LayerControl().add_to(m)