]> git.openstreetmap.org Git - rails.git/commitdiff
Update leaflet.osm plugin
authorTom Hughes <tom@compton.nu>
Fri, 10 Apr 2020 13:31:31 +0000 (14:31 +0100)
committerTom Hughes <tom@compton.nu>
Fri, 10 Apr 2020 13:31:58 +0000 (14:31 +0100)
vendor/assets/leaflet/leaflet.osm.js

index 37c8bcf7d8115ad20fd8488ed769e5bf75858eea..ecf99a70abc1c48b44bd6f434af26568002ebf9b 100644 (file)
@@ -2,7 +2,7 @@ L.OSM = {};
 
 L.OSM.TileLayer = L.TileLayer.extend({
   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'
   },
 
@@ -46,7 +46,7 @@ L.OSM.HOT = L.OSM.TileLayer.extend({
 
 L.OSM.GPS = L.OSM.TileLayer.extend({
   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,
     maxNativeZoom: 20,
     subdomains: 'abc'