diff --git a/index.php b/index.php
index 74cd756b..fefcff84 100644
--- a/index.php
+++ b/index.php
@@ -42,10 +42,12 @@ html_export_var(array(
+
+
diff --git a/package.json b/package.json
index 4fdec0b1..51cc2fdd 100644
--- a/package.json
+++ b/package.json
@@ -20,6 +20,7 @@
"leaflet-polylineoffset": "^1.1.0",
"leaflet-textpath": "https://github.com/makinacorpus/Leaflet.TextPath#leaflet0.8-dev",
"leaflet.locatecontrol": "^0.61.0",
+ "leaflet.polylinemeasure": "https://github.com/ppete2/Leaflet.PolylineMeasure.git",
"modulekit-tabs": "^0.1.0",
"moment": "^2.18.1",
"opening_hours": "^3.5.0",
diff --git a/src/index.js b/src/index.js
index bee2ceb1..c1056d2f 100644
--- a/src/index.js
+++ b/src/index.js
@@ -52,6 +52,12 @@ window.onload = function () {
}
function onload2 (initState) {
+ // Measurement plugin
+ if (L.control.polylineMeasure) {
+ L.control.polylineMeasure({
+ }).addTo(map);
+ }
+
// Add Geo Search
var provider = new LeafletGeoSearch.OpenStreetMapProvider()
var searchControl = new LeafletGeoSearch.GeoSearchControl({