Do the transform the right way round.

This commit is contained in:
Tom Hughes 2008-04-19 14:32:40 +00:00
parent 9b04cebf3c
commit ab62a4b453

View 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() {