Skip to content

Commit b2f5134

Browse files
authored
added reference to free Leaflet tile providers in docstring (#1325)
1 parent 6e7104f commit b2f5134

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

folium/folium.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,12 @@ class Map(MacroElement):
8383
- "CartoDB" (positron and dark_matter)
8484
8585
You can pass a custom tileset to Folium by passing a Leaflet-style
86-
URL to the tiles parameter: ``http://{s}.yourtiles.com/{z}/{x}/{y}.png``
86+
URL to the tiles parameter: ``http://{s}.yourtiles.com/{z}/{x}/{y}.png``.
87+
88+
You can find a list of free tile providers here:
89+
``http://leaflet-extras.github.io/leaflet-providers/preview/``.
90+
Be sure to check their terms and conditions and to provide attribution
91+
with the `attr` keyword.
8792
8893
Parameters
8994
----------

folium/raster_layers.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,12 @@ class TileLayer(Layer):
3232
- "Mapbox" (Must pass API key)
3333
3434
You can pass a custom tileset to Folium by passing a Leaflet-style
35-
URL to the tiles parameter: ``http://{s}.yourtiles.com/{z}/{x}/{y}.png``
36-
You must then also provide attribution, use the `attr` keyword.
35+
URL to the tiles parameter: ``http://{s}.yourtiles.com/{z}/{x}/{y}.png``.
36+
37+
You can find a list of free tile providers here:
38+
``http://leaflet-extras.github.io/leaflet-providers/preview/``.
39+
Be sure to check their terms and conditions and to provide attribution
40+
with the `attr` keyword.
3741
min_zoom: int, default 0
3842
Minimum allowed zoom level for this tile layer.
3943
max_zoom: int, default 18

0 commit comments

Comments
 (0)