From 01dd8143d18229d35915b166c59d3dd3a4ad963c Mon Sep 17 00:00:00 2001 From: Esteban Franqueiro Date: Tue, 6 Feb 2018 14:06:42 -0300 Subject: [PATCH] Read the global configuration, not the local one --- src/control.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/control.js b/src/control.js index c98b41f1..45140f8f 100644 --- a/src/control.js +++ b/src/control.js @@ -319,7 +319,7 @@ routes.forEach(function(route, i) { route.routesIndex = i; }); - if (!options.geometryOnly) { + if (!this.options.geometryOnly) { this.fire('routesfound', {waypoints: wps, routes: routes}); this.setAlternatives(routes); } else {