Skip to content

Commit

Permalink
Update leaflet_options.js => Added "About" and "Foot (vampire)"
Browse files Browse the repository at this point in the history
  • Loading branch information
sfkeller authored and datendelphin committed Jan 15, 2025
1 parent e81ad70 commit ddd8c41
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions src/leaflet_options.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
var L = require('leaflet');

var standard = L.tileLayer('//tile.osm.ch/switzerland/{z}/{x}/{y}.png', {
attribution: 'Map data © OpenStreetMap contributors under <a ref="http://www.openstreetmap.org/copyright">ODbL</a>'
attribution: 'Map data © OpenStreetMap contributors under <a ref="http://www.openstreetmap.org/copyright">ODbL</a> | <a href="https://osm.ch/nutze-osm.html">About</a>'
}),
swiss_style = L.tileLayer('http://tile.osm.ch/osm-swiss-style/{z}/{x}/{y}.png', {
attribution: 'Map data © OpenStreetMap contributors under <a ref="http://www.openstreetmap.org/copyright">ODbL</a>'
attribution: 'Map data © OpenStreetMap contributors under <a ref="http://www.openstreetmap.org/copyright">ODbL</a> | <a href="https://osm.ch/nutze-osm.html">About</a>'
}),
osm_de = L.tileLayer('//{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png', {
attribution: 'Map data © OpenStreetMap contributors under <a ref="http://www.openstreetmap.org/copyright">ODbL</a>'
attribution: 'Map data © OpenStreetMap contributors under <a ref="http://www.openstreetmap.org/copyright">ODbL</a> | <a href="https://osm.ch/nutze-osm.html">About</a>'
}),
hiking = L.tileLayer('//tile.waymarkedtrails.org/hiking/{z}/{x}/{y}.png', {}),
bike = L.tileLayer('//tile.waymarkedtrails.org/cycling/{z}/{x}/{y}.png', {})
Expand Down Expand Up @@ -43,16 +43,22 @@ module.exports = {
fixspeed: 18
},
{
label: 'Foot',
label: 'Foot (city)',
path: '/routed-foot/route/v1',
debug: 'foot',
fixspeed: 4.5
},
{
label: 'Hiking',
label: 'Foot (hiking)',
path: '/routed-hiking/route/v1',
debug: 'hiking',
fixspeed: 4.5
},
{
label: 'Foot (vampire)',
path: '/routed-vampire/route/v1',
debug: 'vampire',
fixspeed: 4.0
}],
layer: [{
'standard': standard,
Expand Down

0 comments on commit ddd8c41

Please sign in to comment.