From 29b5aced17a580447ff5dc1fa086b2ac61adf460 Mon Sep 17 00:00:00 2001 From: Frank <33519926+Conengmo@users.noreply.github.com> Date: Sat, 18 Jan 2025 12:30:45 +0100 Subject: [PATCH 1/2] docs: custom tilesets --- docs/user_guide/raster_layers/tiles.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/docs/user_guide/raster_layers/tiles.md b/docs/user_guide/raster_layers/tiles.md index cf7998590..e7d3563d9 100644 --- a/docs/user_guide/raster_layers/tiles.md +++ b/docs/user_guide/raster_layers/tiles.md @@ -26,6 +26,13 @@ folium.Map(location=[lat, lon], tiles="Cartodb dark_matter", zoom_start=zoom_sta ### Custom tiles +You can also provide a url template to load tiles from, for example if you use a paid API. +You also have to provide an attribution in that case. For information how that +url template should look like see the Leaflet documentation: +https://leafletjs.com/reference.html#tilelayer. + +Below is an example, note the literal `{z}`, `{x}` and `{y}` in the url template. + ```{code-cell} ipython3 attr = ( '© OpenStreetMap ' From 9b47e31eadce44064b20a992c571feb4622876e4 Mon Sep 17 00:00:00 2001 From: Frank <33519926+Conengmo@users.noreply.github.com> Date: Sat, 18 Jan 2025 12:32:18 +0100 Subject: [PATCH 2/2] Update tiles.md --- docs/user_guide/raster_layers/tiles.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/user_guide/raster_layers/tiles.md b/docs/user_guide/raster_layers/tiles.md index e7d3563d9..5a1de3ede 100644 --- a/docs/user_guide/raster_layers/tiles.md +++ b/docs/user_guide/raster_layers/tiles.md @@ -27,7 +27,7 @@ folium.Map(location=[lat, lon], tiles="Cartodb dark_matter", zoom_start=zoom_sta ### Custom tiles You can also provide a url template to load tiles from, for example if you use a paid API. -You also have to provide an attribution in that case. For information how that +You also have to provide an attribution in that case. For information how that url template should look like see the Leaflet documentation: https://leafletjs.com/reference.html#tilelayer.