From ab62a4b45317a52333918d59d9ec8e3181cd4474 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 19 Apr 2008 14:32:40 +0000 Subject: [PATCH] Do the transform the right way round. --- public/javascripts/map.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() { -- 2.43.2