From ddd8c4196185ee6fc490a3dd204e6f5b9ea4a2e3 Mon Sep 17 00:00:00 2001 From: Stefan <43340+sfkeller@users.noreply.github.com> Date: Wed, 15 Jan 2025 13:10:01 +0100 Subject: [PATCH] Update leaflet_options.js => Added "About" and "Foot (vampire)" --- src/leaflet_options.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/src/leaflet_options.js b/src/leaflet_options.js index 396594ef..ef891362 100644 --- a/src/leaflet_options.js +++ b/src/leaflet_options.js @@ -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 ODbL' + attribution: 'Map data © OpenStreetMap contributors under ODbL | About' }), swiss_style = L.tileLayer('http://tile.osm.ch/osm-swiss-style/{z}/{x}/{y}.png', { - attribution: 'Map data © OpenStreetMap contributors under ODbL' + attribution: 'Map data © OpenStreetMap contributors under ODbL | About' }), osm_de = L.tileLayer('//{s}.tile.openstreetmap.de/tiles/osmde/{z}/{x}/{y}.png', { - attribution: 'Map data © OpenStreetMap contributors under ODbL' + attribution: 'Map data © OpenStreetMap contributors under ODbL | About' }), hiking = L.tileLayer('//tile.waymarkedtrails.org/hiking/{z}/{x}/{y}.png', {}), bike = L.tileLayer('//tile.waymarkedtrails.org/cycling/{z}/{x}/{y}.png', {}) @@ -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,