Browse Source

Disable dragging because it does not reliably fire a event

so we could end up with wrong coordinates.
master
Bernhard Fröhlich 2 years ago
parent
commit
d1aa112a66
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      js/grazmap.js

+ 2
- 2
js/grazmap.js View File

@@ -8,12 +8,12 @@ function onMapClick(e) {
if(marker !== null)
map.removeLayer(marker);

marker = new L.marker(e.latlng, {draggable:'true'});
marker = new L.marker(e.latlng);
marker.addTo(map);

document.getElementById('latitude').value = e.latlng.lat;
document.getElementById('longitude').value = e.latlng.lng;
};
}

function initmap() {
map = new L.map('map');

Loading…
Cancel
Save