Explorar el Código

Use prompt instead of alert to show coords

Michael Schwarz hace 8 años
padre
commit
e02f657dab
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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()
       }