Spaces:
Build error
Build error
Update src/streamlit_app.py
Browse files- 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 |
|