From 0e9aa96c2023dd2746fc79fcb8d2b832e520c86d Mon Sep 17 00:00:00 2001 From: Julien Veyssier Date: Mon, 8 Apr 2019 14:44:59 +0200 Subject: [PATCH] make routing waypoints reversible --- css/style.css | 1 + js/script.js | 1 + 2 files changed, 2 insertions(+) diff --git a/css/style.css b/css/style.css index 9a088b48..18d2da7c 100644 --- a/css/style.css +++ b/css/style.css @@ -363,6 +363,7 @@ table.editFavorite input[type=text] { text-align: center; } /* Overriden routing/geocoder style */ +.leaflet-routing-reverse-waypoints, .leaflet-routing-add-waypoint { width: 25px !important; height: 25px !important; diff --git a/js/script.js b/js/script.js index 46dbf3a1..6a53b08d 100644 --- a/js/script.js +++ b/js/script.js @@ -327,6 +327,7 @@ // L.latLng(57.6792, 11.949) //], routeWhileDragging: true, + reverseWaypoints: true, geocoder: L.Control.Geocoder.nominatim(), // TODO find a way to check if current NC language is supported by routing control //language: 'fr',