From 5ab8b1c32ebf30843b7d6284f29ec2b9d3d67ed2 Mon Sep 17 00:00:00 2001 From: Christopher Baines Date: Sat, 21 Mar 2015 12:09:24 +0000 Subject: Add a dependancy warning --- src/leaflet-soton.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') 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; -- cgit v1.2.3