Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: bit more explanation about custom tileset url templates #2082

Merged
merged 2 commits into from
Jan 18, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions docs/user_guide/raster_layers/tiles.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 = (
'&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> '
Expand Down
Loading