From: Tom Hughes Date: Sat, 19 Apr 2008 14:32:40 +0000 (+0000) Subject: Do the transform the right way round. X-Git-Tag: live~7838 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/ab62a4b45317a52333918d59d9ec8e3181cd4474?hp=9b04cebf3cb9190cb46996b100a4dc3659638210;ds=sidebyside Do the transform the right way round. --- 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() {