Skip to content

Commit addb26b

Browse files
authored
docs: bit more explanation about custom tileset url templates (#2082)
* docs: custom tilesets * Update tiles.md
1 parent af03218 commit addb26b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/user_guide/raster_layers/tiles.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ folium.Map(location=[lat, lon], tiles="Cartodb dark_matter", zoom_start=zoom_sta
2626

2727
### Custom tiles
2828

29+
You can also provide a url template to load tiles from, for example if you use a paid API.
30+
You also have to provide an attribution in that case. For information how that
31+
url template should look like see the Leaflet documentation:
32+
https://leafletjs.com/reference.html#tilelayer.
33+
34+
Below is an example, note the literal `{z}`, `{x}` and `{y}` in the url template.
35+
2936
```{code-cell} ipython3
3037
attr = (
3138
'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> '

0 commit comments

Comments
 (0)