fschwartzer commited on
Commit
45db7a6
·
1 Parent(s): b5290a2

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -38,6 +38,8 @@ with st.sidebar:
38
  # Filter data based on the radius
39
  if selected_coords == 'Custom':
40
  filtered_data = data[data.apply(lambda x: calculate_distance(x['lat'], x['lon'], custom_lat, custom_lon), axis=1) <= radius_in_meters]
41
- st.map(filtered_data, zoom=zoom_level, use_container_width=True)
 
42
  else:
43
- st.map(data, zoom=zoom_level, use_container_width=True)
 
 
38
  # Filter data based on the radius
39
  if selected_coords == 'Custom':
40
  filtered_data = data[data.apply(lambda x: calculate_distance(x['lat'], x['lon'], custom_lat, custom_lon), axis=1) <= radius_in_meters]
41
+ #st.map(filtered_data, zoom=zoom_level, use_container_width=True)
42
+ st.map(filtered_data, zoom=zoom_level)
43
  else:
44
+ #st.map(data, zoom=zoom_level, use_container_width=True)
45
+ st.map(data, zoom=zoom_level)