]> git.openstreetmap.org Git - rails.git/commitdiff
Use the right variable for the event.
authorTom Hughes <tom@compton.nu>
Sat, 19 Apr 2008 14:27:57 +0000 (14:27 +0000)
committerTom Hughes <tom@compton.nu>
Sat, 19 Apr 2008 14:27:57 +0000 (14:27 +0000)
public/javascripts/map.js

index 631999a0a99729854ae8e47080a3eef15ce48f2a..b222af23cfe178e77af958601a0c37b812839c1e 100644 (file)
@@ -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() {