Use the right variable for the event.
This commit is contained in:
parent
97a4e25f90
commit
ff10be4855
1 changed files with 1 additions and 1 deletions
|
@ -110,7 +110,7 @@ function setMapExtent(extent) {
|
|||
}
|
||||
|
||||
function getEventPosition(event) {
|
||||
return map.getLonLatFromViewPortPx(e.xy).clone().transform(epsg4326, map.getProjectionObject());
|
||||
return map.getLonLatFromViewPortPx(event.xy).clone().transform(epsg4326, map.getProjectionObject());
|
||||
}
|
||||
|
||||
function getMapLayers() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue