Skip to content

Commit da7320a

Browse files
authored
Fix geoviews not working. (#103)
`gts.tile_sources['StamenLabels']` is deprecated (?), change to `gts.StamenLabels`.
1 parent 2ccbb5f commit da7320a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

oggm-edu/glacier_water_resources.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@
215215
" sh = salem.transform_geopandas(gdir.read_shapefile('outlines'))\n",
216216
" out = (gv.Polygons(sh).opts(fill_color=None, color_index=None) * \n",
217217
" gts.tile_sources['EsriImagery'] * \n",
218-
" gts.tile_sources['StamenLabels']).opts(width=800, height=500, active_tools=['pan', 'wheel_zoom'])\n",
218+
" gts.StamenLabels).opts(width=800, height=500, active_tools=['pan', 'wheel_zoom'])\n",
219219
"except:\n",
220220
" # The rest of the notebook works without this dependency\n",
221221
" out = None\n",

oggm-edu/glacier_water_resources_projections.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
" sh = salem.transform_geopandas(gdir.read_shapefile('outlines'))\n",
186186
" out = (gv.Polygons(sh).opts(fill_color=None, color_index=None) * \n",
187187
" gts.tile_sources['EsriImagery'] * \n",
188-
" gts.tile_sources['StamenLabels']).opts(width=800, height=500, active_tools=['pan', 'wheel_zoom'])\n",
188+
" gts.StamenLabels).opts(width=800, height=500, active_tools=['pan', 'wheel_zoom'])\n",
189189
"except:\n",
190190
" # The rest of the notebook works without this dependency\n",
191191
" out = None\n",
@@ -578,7 +578,7 @@
578578
" sh = salem.transform_geopandas(gdirs[1].read_shapefile('outlines'))\n",
579579
" out = (gv.Polygons(sh).opts(fill_color=None, color_index=None) * \n",
580580
" gts.tile_sources['EsriImagery'] *\n",
581-
" gts.tile_sources['StamenLabels']).opts(width=800, height=500, active_tools=['pan', 'wheel_zoom'])\n",
581+
" gts.StamenLabels).opts(width=800, height=500, active_tools=['pan', 'wheel_zoom'])\n",
582582
"except:\n",
583583
" # The rest of the notebook works without this dependency\n",
584584
" out = None\n",

0 commit comments

Comments
 (0)