Browse Source

Disable dragging because it does not reliably fire a event

so we could end up with wrong coordinates.
master
Bernhard Fröhlich 1 year 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) {
8 8
    if(marker !== null)
9 9
       map.removeLayer(marker);
10 10
 
11
-   marker = new L.marker(e.latlng, {draggable:'true'});
11
+   marker = new L.marker(e.latlng);
12 12
    marker.addTo(map);
13 13
 
14 14
    document.getElementById('latitude').value = e.latlng.lat;
15 15
    document.getElementById('longitude').value = e.latlng.lng;
16
-};
16
+}
17 17
 
18 18
 function initmap() {
19 19
    map = new L.map('map');

Loading…
Cancel
Save