summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2015-03-21 12:09:24 +0000
committerChristopher Baines <cb15g11@soton.ac.uk>2015-03-21 12:09:24 +0000
commit5ab8b1c32ebf30843b7d6284f29ec2b9d3d67ed2 (patch)
tree5f86f52a6e98446f18770941631b2af75e060400
parent7b9fafb62f150972c28bc53b7f01009c71e79d90 (diff)
downloadleaflet-soton-5ab8b1c32ebf30843b7d6284f29ec2b9d3d67ed2.tar
leaflet-soton-5ab8b1c32ebf30843b7d6284f29ec2b9d3d67ed2.tar.gz
Add a dependancy warning
-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;