wanwanlin0521 commited on
Commit
51e3afc
·
verified ·
1 Parent(s): 813a20b

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +2 -0
src/streamlit_app.py CHANGED
@@ -270,6 +270,8 @@ df_filtered = df[(df['year'] == year_dropdown) & (df['crm_cd_desc'] == crime_dro
270
  # Create the new folium map to make the map more interactive.
271
  new_map = folium.Map(location=[df_filtered['lat'].mean(), df_filtered['lon'].mean()], zoom_start=10)
272
 
 
 
273
  # Add county boundary
274
  folium.GeoJson(geojson_data, name="County Boundaries").add_to(new_map)
275
 
 
270
  # Create the new folium map to make the map more interactive.
271
  new_map = folium.Map(location=[df_filtered['lat'].mean(), df_filtered['lon'].mean()], zoom_start=10)
272
 
273
+ GEOJSON_PATH = Path(__file__).parent / "County_Boundary.geojson"
274
+
275
  # Add county boundary
276
  folium.GeoJson(geojson_data, name="County Boundaries").add_to(new_map)
277