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 b222af23cfe178e77af958601a0c37b812839c1e..b3d964b5b468e0bffa7ff1b5989a48119c483bcf 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() {