From: Tom Hughes Date: Sat, 19 Apr 2008 14:27:57 +0000 (+0000) Subject: Use the right variable for the event. X-Git-Tag: live~7839 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/ff10be48554c63e2681dba4ece718d4be84b4a12 Use the right variable for the event. --- diff --git a/public/javascripts/map.js b/public/javascripts/map.js index 631999a0a..b222af23c 100644 --- a/public/javascripts/map.js +++ b/public/javascripts/map.js @@ -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() {