X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/43e12e7d02307ad92cc51ebd09f4e88a466168aa..647638822269df68bc807a1104baa280207f3f6b:/app/views/site/index.html.erb?ds=sidebyside diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index b668627a0..681924444 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -161,8 +161,10 @@ end map.addControl(map.osbControl); var lBug = document.getElementById('ReportBug'); + /* lBug.addEventListener('click',function (e) { + map.osbControl.activate(); document.getElementById("OpenLayers.Map_18_OpenLayers_Container").style.cursor = "crosshair" },false); */ lBug.addEventListener('click',function (e) { - map.osbControl.activate(); document.getElementById("OpenLayers.Map_18_OpenLayers_Container").style.cursor = "crosshair" },false); + map.osbControl.activate(); map.osbControl.addTemporaryMarker(map.getCenter());},false); map.events.register("zoomend",map,function () { var zoom = map.getZoom(); var lBug = document.getElementById('ReportBug') if (zoom > 11) { lBug.style.visibility = 'visible';} else {lBug.style.visibility = "hidden";}});