From 5fe7522f5f60248af5f190a4687c9bea32959c3a Mon Sep 17 00:00:00 2001 From: patrickzerhusen Date: Tue, 21 Apr 2026 15:52:41 +0200 Subject: [PATCH] deactivated mouse position control and polyline measure plugin --- public/index.php | 4 ++-- public/js/app.js | 38 +++++++++++++++++++------------------- 2 files changed, 21 insertions(+), 21 deletions(-) diff --git a/public/index.php b/public/index.php index 59e6c90..80caa64 100644 --- a/public/index.php +++ b/public/index.php @@ -54,7 +54,7 @@ if (!$municipality) { - + @@ -321,7 +321,7 @@ if (!$municipality) { - + diff --git a/public/js/app.js b/public/js/app.js index a1c1613..ee4cfd6 100644 --- a/public/js/app.js +++ b/public/js/app.js @@ -135,31 +135,31 @@ L.Control.geocoder({ }).addTo(map); // Polyline Measure Tool -L.control.polylineMeasure({ - position: 'topright', - unit: 'metres', - showBearings: false, - clearMeasurementsOnStop: false, - showClearControl: true -}).addTo(map); +// L.control.polylineMeasure({ +// position: 'topright', +// unit: 'metres', +// showBearings: false, +// clearMeasurementsOnStop: false, +// showClearControl: true +// }).addTo(map); // Mouse Position Display -var MousePositionControl = L.Control.extend({ - options: { position: 'bottomright' }, +// var MousePositionControl = L.Control.extend({ +// options: { position: 'bottomright' }, - onAdd: function () { - var container = L.DomUtil.create('div', 'mouse-position-display'); - container.innerHTML = 'Lat: , Lng: '; +// onAdd: function () { +// var container = L.DomUtil.create('div', 'mouse-position-display'); +// container.innerHTML = 'Lat: , Lng: '; - map.on('mousemove', function (e) { - container.innerHTML = 'Lat: ' + e.latlng.lat.toFixed(5) + ', Lng: ' + e.latlng.lng.toFixed(5); - }); +// map.on('mousemove', function (e) { +// container.innerHTML = 'Lat: ' + e.latlng.lat.toFixed(5) + ', Lng: ' + e.latlng.lng.toFixed(5); +// }); - return container; - } -}); +// return container; +// } +// }); -new MousePositionControl().addTo(map); +// new MousePositionControl().addTo(map); // GPS Location Button var GpsControl = L.Control.extend({