Do the transform the right way round.
authorTom Hughes <tom@compton.nu>
Sat, 19 Apr 2008 14:32:40 +0000 (14:32 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 19 Apr 2008 14:32:40 +0000 (14:32 +0000)
public/javascripts/map.js

index b222af2..b3d964b 100644 (file)
@@ -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() {