소스 검색

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()
       }