m-ric HF staff commited on
Commit
6bf0e6a
·
verified ·
1 Parent(s): 9235039

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -174,13 +174,13 @@ def create_map_from_markers(dataframe):
174
  for _, row in dataframe.iterrows():
175
  if np.isnan(row["lat"]) or np.isnan(row["lon"]):
176
  continue
177
- popup_message = f"<h4>{row['name']}</h4><p style='font-weight:500'>{row['description']}</p>"
178
  popup_message += f"<a href='https://www.google.com/search?q={row['name']}' target='_blank'><b>Learn more about {row['name'].split(',')[0]}</b></a>"
179
 
180
  marker = folium.Marker(
181
  location=[row["lat"], row["lon"]],
182
  popup=folium.Popup(popup_message, max_width=300),
183
- icon=folium.Icon(color="yellow",icon="fa-circle-dot", prefix='fa'),
184
  )
185
  marker.add_to(f_map),
186
 
 
174
  for _, row in dataframe.iterrows():
175
  if np.isnan(row["lat"]) or np.isnan(row["lon"]):
176
  continue
177
+ popup_message = f"<h4 style='color: #d53e2a;'>{row['name']}</h4><p style='font-weight:500'>{row['description']}</p>"
178
  popup_message += f"<a href='https://www.google.com/search?q={row['name']}' target='_blank'><b>Learn more about {row['name'].split(',')[0]}</b></a>"
179
 
180
  marker = folium.Marker(
181
  location=[row["lat"], row["lon"]],
182
  popup=folium.Popup(popup_message, max_width=300),
183
+ icon=folium.Icon(icon="fa-circle-dot", prefix='fa'),
184
  )
185
  marker.add_to(f_map),
186