Use https compatible names for GPS tile servers
This commit is contained in:
parent
df17b997b3
commit
757ef87179
1 changed files with 2 additions and 2 deletions
4
vendor/assets/leaflet/leaflet.osm.js
vendored
4
vendor/assets/leaflet/leaflet.osm.js
vendored
|
@ -67,8 +67,8 @@ L.OSM.HOT = L.OSM.TileLayer.extend({
|
|||
L.OSM.GPS = L.OSM.TileLayer.extend({
|
||||
options: {
|
||||
url: document.location.protocol === 'https:' ?
|
||||
'https://{s}.gps-tile.openstreetmap.org/lines/{z}/{x}/{y}.png' :
|
||||
'http://{s}.gps-tile.openstreetmap.org/lines/{z}/{x}/{y}.png',
|
||||
'https://gps-{s}.tile.openstreetmap.org/lines/{z}/{x}/{y}.png' :
|
||||
'http://gps-{s}.tile.openstreetmap.org/lines/{z}/{x}/{y}.png',
|
||||
maxZoom: 20,
|
||||
subdomains: 'abc'
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue