Переглянути джерело

Use prompt instead of alert to show coords

Michael Schwarz 8 роки тому
батько
коміт
e02f657dab
1 змінених файлів з 1 додано та 1 видалено
  1. 1 1
      lib/map.js

+ 1 - 1
lib/map.js

@@ -215,7 +215,7 @@ define(["map/clientlayer", "map/labelslayer",
       }
 
       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()
       }