deactivated mouse position control and polyline measure plugin
This commit is contained in:
@@ -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