Add public gps tiles layer for debugging purposes

Fixes #1239
Closes #1406
This commit is contained in:
Lars Sonchocky-Helldorf 2017-01-04 19:24:23 +00:00 committed by Tom Hughes
parent ea93c0338c
commit df17b997b3
5 changed files with 21 additions and 0 deletions

View file

@ -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'],