X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/3eda7be919f5b3bd88b5cf85ba1a3c1f72550d6f..c1cdddf11f363d24f7c18b3e9df15e1bde3c4302:/vendor/assets/leaflet/leaflet.osm.js diff --git a/vendor/assets/leaflet/leaflet.osm.js b/vendor/assets/leaflet/leaflet.osm.js index c6de9f749..2a0592af0 100644 --- a/vendor/assets/leaflet/leaflet.osm.js +++ b/vendor/assets/leaflet/leaflet.osm.js @@ -64,6 +64,16 @@ L.OSM.HOT = L.OSM.TileLayer.extend({ } }); +L.OSM.GPS = L.OSM.TileLayer.extend({ + options: { + url: document.location.protocol === 'https:' ? + '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' + } +}); + L.OSM.DataLayer = L.FeatureGroup.extend({ options: { areaTags: ['area', 'building', 'leisure', 'tourism', 'ruins', 'historic', 'landuse', 'military', 'natural', 'sport'],