summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2014-09-20 11:05:55 +0100
committerChristopher Baines <cb15g11@soton.ac.uk>2014-09-20 11:05:55 +0100
commit53e6f8ddc3a07ac781cb00d5af9805de16178415 (patch)
tree9bea719ad21de3ed19c75cbcc46dd35a7aa20264
parentba2d8c4d8d0c50912867b210a37e501009a71761 (diff)
downloadleaflet-soton-53e6f8ddc3a07ac781cb00d5af9805de16178415.tar
leaflet-soton-53e6f8ddc3a07ac781cb00d5af9805de16178415.tar.gz
Expose the routeLayer such that it can be used
-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) {