fschwartzer commited on
Commit
2e2e519
1 Parent(s): 5d5f51b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -68,7 +68,7 @@ for index, row in data.iterrows():
68
  max_distance = distance
69
 
70
  # Calculate a zoom level based on the maximum distance
71
- zoom_level = round(15.01520053 +(- 0.0006430568*(max_distance)))
72
 
73
  # Create a sidebar for controls
74
  with st.sidebar:
 
68
  max_distance = distance
69
 
70
  # Calculate a zoom level based on the maximum distance
71
+ zoom_level = round(15 - np.log10(max_distance_all))
72
 
73
  # Create a sidebar for controls
74
  with st.sidebar: