From: Kai Krueger Date: Wed, 20 Apr 2011 04:49:10 +0000 (-0600) Subject: Minor fix to updated OpenLayers X-Git-Tag: live~5096^2~200 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/91b9b65a413425b2d398516c30566b2203ab8925 Minor fix to updated OpenLayers --- diff --git a/app/views/site/index.html.erb b/app/views/site/index.html.erb index 70402a1c9..7450eb2ba 100644 --- a/app/views/site/index.html.erb +++ b/app/views/site/index.html.erb @@ -25,7 +25,7 @@
@@ -131,7 +131,7 @@ end function createBugCallBack() { map.osbControl.deactivate(); - document.getElementById("map_OpenLayers_Container").style.cursor = "default"; + document.getElementById("OpenLayers.Map_18_OpenLayers_Container").style.cursor = "default"; } function mapInit(){ @@ -157,11 +157,12 @@ end map.addLayer(map.osbLayer); map.osbControl = new OpenLayers.Control.OpenStreetBugs(map.osbLayer); + map.addControl(map.osbControl); var lBug = document.getElementById('ReportBug'); lBug.addEventListener('click',function (e) { - map.osbControl.activate(); document.getElementById("map_OpenLayers_Container").style.cursor = "crosshair"; if (e.stopPropagation) e.stopPropagation(); },false); + map.osbControl.activate(); document.getElementById("OpenLayers.Map_18_OpenLayers_Container").style.cursor = "crosshair" },false); <% end %>