Spaces:
Sleeping
Sleeping
fschwartzer
commited on
Commit
•
3590de2
1
Parent(s):
45db7a6
Update app.py
Browse files
app.py
CHANGED
@@ -38,8 +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 |
-
|
42 |
-
st.map(filtered_data, zoom=zoom_level)
|
43 |
else:
|
44 |
-
|
45 |
-
st.map(data, zoom=zoom_level)
|
|
|
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, height='100vh')
|
|
|
42 |
else:
|
43 |
+
st.map(data, zoom=zoom_level, use_container_width=True, height='100vh')
|
|