fschwartzer commited on
Commit
efca6f0
1 Parent(s): 42f4965

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -2
app.py CHANGED
@@ -38,6 +38,17 @@ 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
  else:
42
+ filtered_data = data
43
+
44
+ # Add a custom CSS class to the map container
45
+ st.markdown(f"""<style>
46
+ .map {{
47
+ width: 100%;
48
+ height: 100vh;
49
+ }}
50
+ </style>""", unsafe_allow_html=True)
51
+
52
+ # Wrap the map in a container with the custom CSS class
53
+ with st.container():
54
+ st.map(filtered_data, zoom=zoom_level, use_container_width=True)