Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -33,6 +33,15 @@ def display_map(df, year, quarter):
|
|
| 33 |
|
| 34 |
map = folium.Map(location=[-43.346200009, 172.23381214 ], zoom_start=10, scrollWheelZoom=False, tiles='CartoDB positron')
|
| 35 |
Map = geemap.Map(center=[-43.346200009, 172.23381214], zoom=10, height=600)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 36 |
choropleth = folium.Choropleth(
|
| 37 |
geo_data='data/us-state-boundaries.geojson',
|
| 38 |
data=df,
|
|
@@ -53,7 +62,7 @@ def display_map(df, year, quarter):
|
|
| 53 |
folium.features.GeoJsonTooltip(['name', 'population', 'per_100k'], labels=False)
|
| 54 |
)
|
| 55 |
|
| 56 |
-
st_map = st_folium(
|
| 57 |
|
| 58 |
state_name = ''
|
| 59 |
if st_map['last_active_drawing']:
|
|
|
|
| 33 |
|
| 34 |
map = folium.Map(location=[-43.346200009, 172.23381214 ], zoom_start=10, scrollWheelZoom=False, tiles='CartoDB positron')
|
| 35 |
Map = geemap.Map(center=[-43.346200009, 172.23381214], zoom=10, height=600)
|
| 36 |
+
m = geemap.Map(center=[-43.346200009, 172.23381214], zoom=10,
|
| 37 |
+
basemap="HYBRID",
|
| 38 |
+
plugin_Draw=True,
|
| 39 |
+
Draw_export=True,
|
| 40 |
+
locate_control=True,
|
| 41 |
+
plugin_LatLngPopup=False,
|
| 42 |
+
)
|
| 43 |
+
m.add_basemap("ROADMAP")
|
| 44 |
+
|
| 45 |
choropleth = folium.Choropleth(
|
| 46 |
geo_data='data/us-state-boundaries.geojson',
|
| 47 |
data=df,
|
|
|
|
| 62 |
folium.features.GeoJsonTooltip(['name', 'population', 'per_100k'], labels=False)
|
| 63 |
)
|
| 64 |
|
| 65 |
+
st_map = st_folium(m, width=700, height=450)
|
| 66 |
|
| 67 |
state_name = ''
|
| 68 |
if st_map['last_active_drawing']:
|