X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2e03861300bca1a44d50a9e9c684ffc0e2d6ad65..da76d64e93fc2892ab567f4ca6dc9a6eac4385b6:/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()); }