summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/leaflet-soton.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/leaflet-soton.js b/src/leaflet-soton.js
index 9fb8998..8d849b9 100644
--- a/src/leaflet-soton.js
+++ b/src/leaflet-soton.js
@@ -916,6 +916,12 @@ SELECT * WHERE {\
initialize: function (id, options) {
options = L.setOptions(this, options);
+ if (options.busRoutes) {
+ if (!L.Route) {
+ console.warn("The busRoutes option requires the leaflet-route library");
+ }
+ }
+
L.Map.prototype.initialize.call(this, id, options);
var map = this;