Update leaflet.osm plugin

This commit is contained in:
Tom Hughes 2020-04-10 14:31:31 +01:00
parent e6f00f5dc8
commit 8199002a0f

View file

@ -2,7 +2,7 @@ L.OSM = {};
L.OSM.TileLayer = L.TileLayer.extend({ L.OSM.TileLayer = L.TileLayer.extend({
options: { options: {
url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', url: 'https://tile.openstreetmap.org/{z}/{x}/{y}.png',
attribution: '© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors' attribution: '© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors'
}, },
@ -46,7 +46,7 @@ L.OSM.HOT = L.OSM.TileLayer.extend({
L.OSM.GPS = L.OSM.TileLayer.extend({ L.OSM.GPS = L.OSM.TileLayer.extend({
options: { options: {
url: 'https://gps-{s}.tile.openstreetmap.org/lines/{z}/{x}/{y}.png', url: 'https://gps.tile.openstreetmap.org/lines/{z}/{x}/{y}.png',
maxZoom: 21, maxZoom: 21,
maxNativeZoom: 20, maxNativeZoom: 20,
subdomains: 'abc' subdomains: 'abc'