add Hiking + Cycling overlays (Waymarked Trails)
This commit is contained in:
parent
ba437260f1
commit
a8770783c0
1 changed files with 16 additions and 4 deletions
20
js/index.js
20
js/index.js
|
|
@ -37,6 +37,19 @@
|
||||||
attribution: thunderforestAttribution
|
attribution: thunderforestAttribution
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var cycling = L.tileLayer('http://tile.waymarkedtrails.org/cycling/{z}/{x}/{y}.png', {
|
||||||
|
maxZoom: 19,
|
||||||
|
opacity: 0.7,
|
||||||
|
attribution: 'Cycling © <a target="_blank" href="http://cycling.waymarkedtrails.org">Waymarked Trails</a> '
|
||||||
|
+ '(<a target="_blank" href="http://creativecommons.org/licenses/by-sa/3.0/de/deed.en">CC-BY-SA 3.0 DE</a>)'
|
||||||
|
});
|
||||||
|
var hiking = L.tileLayer('http://tile.waymarkedtrails.org/hiking/{z}/{x}/{y}.png', {
|
||||||
|
maxZoom: 19,
|
||||||
|
opacity: 0.7,
|
||||||
|
attribution: 'Hiking © <a target="_blank" href="http://hiking.waymarkedtrails.org">Waymarked Trails</a> '
|
||||||
|
+ '(<a target="_blank" href="http://creativecommons.org/licenses/by-sa/3.0/de/deed.en">CC-BY-SA 3.0 DE</a>)'
|
||||||
|
});
|
||||||
|
|
||||||
var map = new L.Map('map', {
|
var map = new L.Map('map', {
|
||||||
layers: [osm],
|
layers: [osm],
|
||||||
center: new L.LatLng(50.99, 9.86),
|
center: new L.LatLng(50.99, 9.86),
|
||||||
|
|
@ -51,12 +64,11 @@
|
||||||
'OpenStreetMap': osm,
|
'OpenStreetMap': osm,
|
||||||
'OpenStreetMap.de': osmde,
|
'OpenStreetMap.de': osmde,
|
||||||
'OpenTopoMap': topo,
|
'OpenTopoMap': topo,
|
||||||
'OpenCycleMap': cycle,
|
'OpenCycleMap (Thunderf.)': cycle,
|
||||||
'Outdoors': outdoors
|
'Outdoors (Thunderforest)': outdoors
|
||||||
}, {
|
}, {
|
||||||
/*
|
'Cycling (Waymarked Trails)': cycling,
|
||||||
'Hiking (Waymarked Trails)': hiking
|
'Hiking (Waymarked Trails)': hiking
|
||||||
*/
|
|
||||||
}).addTo(map);
|
}).addTo(map);
|
||||||
|
|
||||||
map.addControl(new L.Control.Permalink({text: 'Permalink', position: 'bottomright'})); //, layers: layersControl
|
map.addControl(new L.Control.Permalink({text: 'Permalink', position: 'bottomright'})); //, layers: layersControl
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue