Use https compatible names for GPS tile servers

This commit is contained in:
Tom Hughes 2017-01-05 00:15:04 +00:00
parent df17b997b3
commit 757ef87179

View file

@ -67,8 +67,8 @@ L.OSM.HOT = L.OSM.TileLayer.extend({
L.OSM.GPS = L.OSM.TileLayer.extend({ L.OSM.GPS = L.OSM.TileLayer.extend({
options: { options: {
url: document.location.protocol === 'https:' ? url: document.location.protocol === 'https:' ?
'https://{s}.gps-tile.openstreetmap.org/lines/{z}/{x}/{y}.png' : 'https://gps-{s}.tile.openstreetmap.org/lines/{z}/{x}/{y}.png' :
'http://{s}.gps-tile.openstreetmap.org/lines/{z}/{x}/{y}.png', 'http://gps-{s}.tile.openstreetmap.org/lines/{z}/{x}/{y}.png',
maxZoom: 20, maxZoom: 20,
subdomains: 'abc' subdomains: 'abc'
} }