Add public gps tiles layer for debugging purposes
Fixes #1239 Closes #1406
This commit is contained in:
parent
ea93c0338c
commit
df17b997b3
5 changed files with 21 additions and 0 deletions
10
vendor/assets/leaflet/leaflet.osm.js
vendored
10
vendor/assets/leaflet/leaflet.osm.js
vendored
|
@ -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://{s}.gps-tile.openstreetmap.org/lines/{z}/{x}/{y}.png' :
|
||||
'http://{s}.gps-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'],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue