diff --git a/js/index.js b/js/index.js index b6661c1..9d5d9b5 100644 --- a/js/index.js +++ b/js/index.js @@ -142,9 +142,8 @@ } }); }, - 'Clear route', - map - ); + 'Clear route' + ).addTo(map); function updateRoute(evt) { router.setOptions(evt.options);