summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/leaflet-soton.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leaflet-soton.js b/src/leaflet-soton.js
index 8b34aaf..1673318 100644
--- a/src/leaflet-soton.js
+++ b/src/leaflet-soton.js
@@ -544,7 +544,7 @@ SELECT * WHERE {\
}
if ("Route" in L) {
- var routeLayer = new L.Route(options.busRoutes ? data.busRoutes : emptyFeatureCollection, data.busStops, {
+ var routeLayer = map.routeLayer = new L.Route(options.busRoutes ? data.busRoutes : emptyFeatureCollection, data.busStops, {
routeOptions: {
onEachFeature: function(feature, layer) {
layer.on('click', function(e) {