]> git.openstreetmap.org Git - rails.git/blobdiff - app/assets/javascripts/map.js.erb
Merge branch 'master' into notes
[rails.git] / app / assets / javascripts / map.js.erb
index 5299340480fa4a243d94fef17ba63d3034549a9d..c06c9c8eaf809cf0aecc9733da766b0458aeff2a 100644 (file)
@@ -219,7 +219,7 @@ function setMapCenter(center, zoom) {
 }
 
 function getEventPosition(event) {
 }
 
 function getEventPosition(event) {
-   return map.getLonLatFromViewPortPx(event.xy).clone().transform(map.getProjectionObject(), epsg4326);
+   return unproj(map.getLonLatFromViewPortPx(event.xy));
 }
 
 function getMapLayers() {
 }
 
 function getMapLayers() {