Skip to content

Commit 8d43952

Browse files
JLucjieter
authored andcommitted
Avoid a 301 redirect for Stamen watercolors (#299)
* Stamen only provides jpg watercolor tiles Avoid a redirection from png to jpg for each loaded tile * conform to travis merge rules Travis warns "AssertionError: expected 'https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.jpg' to include '{ext}'" so let's keep the {ext} in the url as if it could change and set it to 'jpg' as an option
1 parent 4fb7114 commit 8d43952

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

leaflet-providers.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,6 +283,7 @@
283283
url: 'https://stamen-tiles-{s}.a.ssl.fastly.net/{variant}/{z}/{x}/{y}.{ext}',
284284
options: {
285285
variant: 'watercolor',
286+
ext: 'jpg',
286287
minZoom: 1,
287288
maxZoom: 16
288289
}

0 commit comments

Comments
 (0)