]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.rhtml
0.6c: bunch of minor improvements and bugfixes
[rails.git] / app / views / site / index.rhtml
index 878720efc7888b62abfe9654c21f490778f399f3..604ecdb326a97659ab584eeec9d080992825f62c 100644 (file)
@@ -115,20 +115,11 @@ by the OpenStreetMap project and it's contributors.
 
     map.events.register("moveend", map, updateLocation);
     map.events.register("changelayer", map, updateLocation);
-    map.events.register("click", map, mapClick);
     updateLocation();
 
     handleResize();
   }
 
-  // Map click results in feature lookup
-  function mapClick(e) {
-      var pos = lonLatToNonSphericalMercator
-                (mercatorToLonLat
-                    (map.getLonLatFromViewPortPx 
-                        ( map.events.getMousePosition(e))));
-  }
-
   function getPosition() {
     return mercatorToLonLat(map.getCenter());
   }