X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/9b04cebf3cb9190cb46996b100a4dc3659638210..ab62a4b45317a52333918d59d9ec8e3181cd4474:/public/javascripts/map.js diff --git a/public/javascripts/map.js b/public/javascripts/map.js index b222af23c..b3d964b5b 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -110,7 +110,7 @@ function setMapExtent(extent) { } function getEventPosition(event) { - return map.getLonLatFromViewPortPx(event.xy).clone().transform(epsg4326, map.getProjectionObject()); + return map.getLonLatFromViewPortPx(event.xy).clone().transform(map.getProjectionObject(), epsg4326); } function getMapLayers() {