summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorChristopher Baines <cb15g11@soton.ac.uk>2015-03-21 12:20:59 +0000
committerChristopher Baines <cb15g11@soton.ac.uk>2015-03-21 12:20:59 +0000
commit51620022b1d267eb299b56d045c32f435aaadc3c (patch)
tree550be69fd947a9c96c40c4c20e05d5933f045844 /resources
parentaca95ebe48c03036b98ca04dbcee1bbbd8a6b363 (diff)
downloadleaflet-soton-51620022b1d267eb299b56d045c32f435aaadc3c.tar
leaflet-soton-51620022b1d267eb299b56d045c32f435aaadc3c.tar.gz
Add warning about leaflet textpath
Diffstat (limited to 'resources')
-rw-r--r--resources/leaflet-route/leaflet-route.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/resources/leaflet-route/leaflet-route.js b/resources/leaflet-route/leaflet-route.js
index a202492..6d820a9 100644
--- a/resources/leaflet-route/leaflet-route.js
+++ b/resources/leaflet-route/leaflet-route.js
@@ -3,6 +3,11 @@ L.Route = L.FeatureGroup.extend({
initialize: function (routes, stops, options) {
L.setOptions(this, options);
+ if (typeof(L.LayerGroup.prototype.setText) !== "function") {
+ // Leaflet TextPath is missing
+ console.warn("The leaflet-route library requires leaflet textpath");
+ }
+
this._layers = {};
this._routeMasters = {};