X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2e03861300bca1a44d50a9e9c684ffc0e2d6ad65..c3bd1f113bfaefc29a48657eefcc87f95dc2da3c:/app/views/site/index.rhtml diff --git a/app/views/site/index.rhtml b/app/views/site/index.rhtml index 878720efc..604ecdb32 100644 --- a/app/views/site/index.rhtml +++ b/app/views/site/index.rhtml @@ -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()); }