deactivated mouse position control and polyline measure plugin
This commit is contained in:
@@ -54,7 +54,7 @@ if (!$municipality) {
|
||||
<link rel="stylesheet" href="https://unpkg.com/leaflet-control-geocoder@2.4.0/dist/Control.Geocoder.css">
|
||||
|
||||
<!-- Leaflet Polyline Measurement Tool -->
|
||||
<link rel="stylesheet" href="https://ppete2.github.io/Leaflet.PolylineMeasure/Leaflet.PolylineMeasure.css">
|
||||
<!-- <link rel="stylesheet" href="https://ppete2.github.io/Leaflet.PolylineMeasure/Leaflet.PolylineMeasure.css"> -->
|
||||
|
||||
<!-- Font Awesome 6 for Icons -->
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
|
||||
@@ -321,7 +321,7 @@ if (!$municipality) {
|
||||
<script src="https://unpkg.com/leaflet-control-geocoder@2.4.0/dist/Control.Geocoder.min.js"></script>
|
||||
|
||||
<!-- Leaflet PolylineMeasure -->
|
||||
<script src="https://ppete2.github.io/Leaflet.PolylineMeasure/Leaflet.PolylineMeasure.js"></script>
|
||||
<!-- <script src="https://ppete2.github.io/Leaflet.PolylineMeasure/Leaflet.PolylineMeasure.js"></script> -->
|
||||
|
||||
<!-- SweetAlert2 -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11.14.0/dist/sweetalert2.all.min.js"></script>
|
||||
|
||||
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user