Add nogo button to routing bar

This commit is contained in:
Norbert Renner 2018-06-27 09:17:45 +02:00
parent 512c0cc712
commit ce32c0da71
2 changed files with 9 additions and 6 deletions

View file

@ -89,8 +89,6 @@
'Clear route'
);
drawToolbar = L.easyBar([drawButton, deleteButton]).addTo(map);
function updateRoute(evt) {
router.setOptions(evt.options);
@ -233,6 +231,7 @@
}
nogos.addTo(map);
drawToolbar = L.easyBar([drawButton, nogos.getButton(), deleteButton]).addTo(map);
nogos.preventRoutePointOnCreate(routing);
map.addControl(new BR.OpacitySlider({