deactivated mouse position control and polyline measure plugin

This commit is contained in:
2026-04-21 15:52:41 +02:00
parent f8f0d514bb
commit 5fe7522f5f
2 changed files with 21 additions and 21 deletions

View File

@@ -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({