summaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
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 = {};