add opacity slider (bootstrap-slider) for route track and markers

This commit is contained in:
Norbert Renner 2015-05-21 20:16:04 +02:00
parent 0b22a75d18
commit d30684b6c8
6 changed files with 143 additions and 4 deletions

View file

@ -217,6 +217,7 @@
trackCasing: {
weight: 8,
color: 'white',
// assumed to be same as track, see setOpacity
opacity: 1
},
nodata: {
@ -276,6 +277,9 @@
nogos.addTo(map);
routing.addTo(map);
map.addControl(new BR.OpacitySlider({
callback: L.bind(routing.setOpacity, routing)
}));
// initial option settings (after controls are added and initialized with onAdd, before permalink)
router.setOptions(nogos.getOptions());
@ -293,7 +297,7 @@
profile: profile
}).addTo(map);
}
initMap();
initApp();