Skip to content

Commit

Permalink
DOC: remove Stamen tiles from docs (geopandas#3006)
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfleis authored and JohnMoutafis committed Nov 16, 2023
1 parent 5d80d0d commit 3a0556f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 35 deletions.
2 changes: 1 addition & 1 deletion doc/source/docs/user_guide/interactive_mapping.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
" name=\"groceries\", # name of the layer in the map\n",
")\n",
"\n",
"folium.TileLayer(\"Stamen Toner\", show=False).add_to(\n",
"folium.TileLayer(\"OpenStreetMap.HOT\", show=False).add_to(\n",
" m\n",
") # use folium to add alternative tiles\n",
"folium.LayerControl().add_to(m) # use folium to add layer control\n",
Expand Down
2 changes: 1 addition & 1 deletion doc/source/gallery/plotting_basemap_background.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"This example shows how you can add a background basemap to plots created\n",
"with the geopandas ``.plot()`` method. This makes use of the\n",
"[contextily](https://github.com/geopandas/contextily) package to retrieve\n",
"web map tiles from several sources (OpenStreetMap, Stamen). Also have a\n",
"web map tiles from several sources (OpenStreetMap, CartoDB). Also have a\n",
"look at contextily's \n",
"[introduction guide](https://contextily.readthedocs.io/en/latest/intro_guide.html#Using-transparent-layers)\n",
"for possible new features not covered here.\n"
Expand Down
38 changes: 5 additions & 33 deletions doc/source/gallery/plotting_with_folium.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -94,7 +94,7 @@
"metadata": {},
"source": [
"## Create Folium map\n",
"Folium has a number of built-in tilesets from OpenStreetMap, Mapbox, and Stamen. For example:"
"Folium has a number of built-in tilesets from OpenStreetMap, Mapbox, and CartoDB. For example:"
]
},
{
Expand All @@ -103,8 +103,8 @@
"metadata": {},
"outputs": [],
"source": [
"# Stamen Terrain\n",
"map = folium.Map(location=[13.406, 80.110], tiles=\"Stamen Terrain\", zoom_start=9)\n",
"# CartoDB Positron\n",
"map = folium.Map(location=[13.406, 80.110], tiles=\"CartoDB Positron\", zoom_start=9)\n",
"map"
]
},
Expand All @@ -119,34 +119,6 @@
"map"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Stamen Toner\n",
"map = folium.Map(location=[13.406, 80.110], tiles=\"Stamen Toner\", zoom_start=9)\n",
"map"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"This example uses the Stamen Terrain map layer to visualize the volcano terrain."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"# Use terrain map layer to see volcano terrain\n",
"map = folium.Map(location=[4, 10], tiles=\"Stamen Terrain\", zoom_start=3)"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -157,7 +129,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 8,
"metadata": {},
"outputs": [],
"source": [
Expand Down

0 comments on commit 3a0556f

Please sign in to comment.