Skip to content

Commit 8c1f837

Browse files
committed
Added Stamen Watercolor tiles.
1 parent e9cc5db commit 8c1f837

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

folium/folium.py

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -66,15 +66,14 @@ def __init__(self, location=None, width=960, height=500,
6666
Generate a base map of given width and height with either default
6767
tilesets or a custom tileset URL. The following tilesets are built-in
6868
to Folium. Pass any of the following to the "tiles" keyword:
69-
-"OpenStreetMap"
70-
-"MapQuest Open"
71-
-"MapQuest Open Aerial"
72-
-"Mapbox Bright" (Limited levels of zoom for free tiles)
73-
-"Mapbox Control Room" (Limited levels of zoom for free tiles)
74-
-"Stamen Terrain"
75-
-"Stamen Toner"
76-
-"Cloudmade" (Must pass API key)
77-
-"Mapbox" (Must pass API key)
69+
- "OpenStreetMap"
70+
- "MapQuest Open"
71+
- "MapQuest Open Aerial"
72+
- "Mapbox Bright" (Limited levels of zoom for free tiles)
73+
- "Mapbox Control Room" (Limited levels of zoom for free tiles)
74+
- "Stamen" (Terrain, Toner, and Watercolor)
75+
- "Cloudmade" (Must pass API key)
76+
- "Mapbox" (Must pass API key)
7877
You can pass a custom tileset to Folium by passing a Leaflet-style
7978
URL to the tiles parameter:
8079
http://{s}.yourtiles.com/{z}/{x}/{y}.png
@@ -163,7 +162,8 @@ def __init__(self, location=None, width=960, height=500,
163162
self.default_tiles = ['openstreetmap', 'mapboxcontrolroom',
164163
'mapquestopen', 'mapquestopenaerial',
165164
'mapboxbright', 'mapbox', 'cloudmade',
166-
'stamenterrain', 'stamentoner']
165+
'stamenterrain', 'stamentoner',
166+
'stamenwatercolor']
167167
self.tile_types = {}
168168
for tile in self.default_tiles:
169169
tile_path = 'tiles/%s' % tile
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Map tiles by <a href="http://stamen.com">Stamen Design</a>, under <a href="http://creativecommons.org/licenses/by/3.0">CC BY 3.0</a>. Data by <a href="http://openstreetmap.org">OpenStreetMap</a>, under <a href="http://creativecommons.org/licenses/by-sa/3.0">CC BY SA</a>.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
https://stamen-tiles-{s}.a.ssl.fastly.net/watercolor/{z}/{x}/{y}.jpg

0 commit comments

Comments
 (0)