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