Tinsae commited on
Commit
3d3a1e1
1 Parent(s): 325156f

update map

Browse files
Files changed (1) hide show
  1. pages/dashboard.py +3 -3
pages/dashboard.py CHANGED
@@ -40,7 +40,7 @@ def display_yield(df, year, region, metric_title):
40
 
41
  def display_map(df, year):
42
  df = df[df["TIME"] == year]
43
- map = folium.Map(location=[42.3, 13], zoom_start=5,scrollWheelZoom=False)
44
  gpd_data = gpd.read_file("data/Italy_regions.zip")
45
  #st.write(gpd_data[gpd_data['NAME_1']=="Valle d'Aosta"])
46
  #st.write(gpd_data)
@@ -49,8 +49,8 @@ def display_map(df, year):
49
  data=df,
50
  columns=['region_code', 'Value'],
51
  key_on="feature.properties.ID_1",
52
- #fill_color='YlGn',
53
- #highlight=True
54
  ).add_to(map)
55
  ch.geojson.add_child(
56
  folium.features.GeoJsonTooltip(['NAME_1'], labels=False)
 
40
 
41
  def display_map(df, year):
42
  df = df[df["TIME"] == year]
43
+ map = folium.Map(location=[42.3, 13], zoom_start=5,scrollWheelZoom=False, tiles='CartoDB positron')
44
  gpd_data = gpd.read_file("data/Italy_regions.zip")
45
  #st.write(gpd_data[gpd_data['NAME_1']=="Valle d'Aosta"])
46
  #st.write(gpd_data)
 
49
  data=df,
50
  columns=['region_code', 'Value'],
51
  key_on="feature.properties.ID_1",
52
+ fill_color='YlGn',
53
+ highlight=True
54
  ).add_to(map)
55
  ch.geojson.add_child(
56
  folium.features.GeoJsonTooltip(['NAME_1'], labels=False)