From 91b9b65a413425b2d398516c30566b2203ab8925 Mon Sep 17 00:00:00 2001 From: Kai Krueger Date: Tue, 19 Apr 2011 22:49:10 -0600 Subject: [PATCH] Minor fix to updated OpenLayers --- app/views/site/index.html.erb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 %> -- 2.43.2