Sfoglia il codice sorgente

Use prompt instead of alert to show coords

Michael Schwarz 8 anni fa
parent
commit
e02f657dab
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      lib/map.js

+ 1 - 1
lib/map.js

@@ -215,7 +215,7 @@ define(["map/clientlayer", "map/labelslayer",
       }
       }
 
 
       function showCoordinates(e) {
       function showCoordinates(e) {
-        window.alert("Koordinaten: " + e.latlng.lat.toFixed(6) + ", " + e.latlng.lng.toFixed(6))
+        prompt("Koordinaten Lat, Lon: ", e.latlng.lat.toFixed(6) + ", " + e.latlng.lng.toFixed(6))
         disableCoords()
         disableCoords()
       }
       }