Do the transform the right way round.
This commit is contained in:
parent
9b04cebf3c
commit
ab62a4b453
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ function setMapExtent(extent) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getEventPosition(event) {
|
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() {
|
function getMapLayers() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue