Borya-Goldarb commited on
Commit
c186ff9
·
verified ·
1 Parent(s): d87b1f4

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -34,13 +34,13 @@ st.write(filtered_data)
34
  m = folium.Map(location=(filtered_data['latitude'].mean(), filtered_data['longitude'].mean()), zoom_start=10)
35
 
36
  # Add markers to the map
37
- status_color = 'green' if status else 'red'
38
  all_markers = folium.FeatureGroup(name='All Markers')
39
  active_markers = folium.FeatureGroup(name='Active Markers', show=False)
40
  inactive_markers = folium.FeatureGroup(name='Inactive Markers', show=False)
41
 
42
 
43
  for index, row in filtered_data.iterrows():
 
44
  html_content = f"""
45
  <div style="
46
  display: inline-block;
 
34
  m = folium.Map(location=(filtered_data['latitude'].mean(), filtered_data['longitude'].mean()), zoom_start=10)
35
 
36
  # Add markers to the map
 
37
  all_markers = folium.FeatureGroup(name='All Markers')
38
  active_markers = folium.FeatureGroup(name='Active Markers', show=False)
39
  inactive_markers = folium.FeatureGroup(name='Inactive Markers', show=False)
40
 
41
 
42
  for index, row in filtered_data.iterrows():
43
+ status_color = 'green' if index%2==0 else 'red'
44
  html_content = f"""
45
  <div style="
46
  display: inline-block;