Browse Source

Use stamen's SSL url when served under https:

pull/759/head
Charlie DeTar 10 years ago
parent
commit
f0ce1f66d9
  1. 20
      source/js/Core/Media/VMM.ExternalAPI.js

20
source/js/Core/Media/VMM.ExternalAPI.js

@ -908,26 +908,34 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') {
map_providers: { map_providers: {
"toner": { "toner": {
"url": "//{S}tile.stamen.com/toner/{Z}/{X}/{Y}.png", "url": (document.location.protocol === "https:" ?
"https://stamen-tiles-{S}a.ssl.fastly.net/toner/{Z}/{X}/{Y}.png" :
"//{S}tile.stamen.com/toner/{Z}/{X}/{Y}.png"),
"minZoom": 0, "minZoom": 0,
"maxZoom": 20, "maxZoom": 20,
"attribution": "stamen" "attribution": "stamen"
}, },
"toner-lines": { "toner-lines": {
"url": "//{S}tile.stamen.com/toner-lines/{Z}/{X}/{Y}.png", "url": (document.location.protocol === "https:" ?
"https://stamen-tiles-{S}a.ssl.fastly.net/toner-lines/{Z}/{X}/{Y}.png" :
"//{S}tile.stamen.com/toner-lines/{Z}/{X}/{Y}.png"),
"minZoom": 0, "minZoom": 0,
"maxZoom": 20, "maxZoom": 20,
"attribution": "stamen" "attribution": "stamen"
}, },
"toner-labels": { "toner-labels": {
"url": "//{S}tile.stamen.com/toner-labels/{Z}/{X}/{Y}.png", "url": (document.location.protocol === "https:" ?
"https://stamen-tiles-{S}a.ssl.fastly.net/toner-labels/{Z}/{X}/{Y}.png" :
"//{S}tile.stamen.com/toner-labels/{Z}/{X}/{Y}.png"),
"minZoom": 0, "minZoom": 0,
"maxZoom": 20, "maxZoom": 20,
"attribution": "stamen" "attribution": "stamen"
}, },
"sterrain": { "sterrain": {
"url": "//{S}tile.stamen.com/terrain/{Z}/{X}/{Y}.jpg", "url": (document.location.protocol === "https:" ?
"https://stamen-tiles-{S}a.ssl.fastly.net/terrain/{Z}/{X}/{Y}.jpg" :
"//{S}tile.stamen.com/terrain/{Z}/{X}/{Y}.jpg"),
"minZoom": 4, "minZoom": 4,
"maxZoom": 20, "maxZoom": 20,
"attribution": "stamen" "attribution": "stamen"
@ -939,7 +947,9 @@ if(typeof VMM != 'undefined' && typeof VMM.ExternalAPI == 'undefined') {
"attribution": "apple" "attribution": "apple"
}, },
"watercolor": { "watercolor": {
"url": "//{S}tile.stamen.com/watercolor/{Z}/{X}/{Y}.jpg", "url": (document.location.protocol === "https:" ?
"https://stamen-tiles-{S}a.ssl.fastly.net/watercolor/{Z}/{X}/{Y}.jpg" :
"//{S}tile.stamen.com/watercolor/{Z}/{X}/{Y}.jpg"),
"minZoom": 3, "minZoom": 3,
"maxZoom": 16, "maxZoom": 16,
"attribution": "stamen" "attribution": "stamen"

Loading…
Cancel
Save