Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Commit
•
42f4965
1
Parent(s):
e817bec
Update app.py
Browse files
app.py
CHANGED
@@ -38,6 +38,6 @@ 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 |
else:
|
43 |
+
st.map(data, zoom=zoom_level, use_container_width=True)
|