]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/site/index.html.erb
Use local files rather than remote ones for osb images
[rails.git] / app / views / site / index.html.erb
index 70402a1c94014a89fcb9e72e49fd4d2bd929d727..633a7ba3b0c9ee1edbdf7e2408c58af6ef03ea6e 100644 (file)
@@ -25,7 +25,7 @@
 <div id="permalink">
   <a href="/" id="permalinkanchor"><%= t 'site.index.permalink' %></a><br/>
   <a href="/" id="shortlinkanchor"><%= t 'site.index.shortlink' %></a><br/>
-  <a href="/" id="ReportBug">Report a problem</a>      
+  <a href="javascript:void()" id="ReportBug">Report a problem</a>      
 </div>
 
 <div id="attribution">
@@ -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(){
@@ -144,24 +144,25 @@ end
 
       map.osbLayer = new OpenLayers.Layer.OpenStreetBugs("OpenStreetBugs", {
           serverURL : "/api/0.6/",
-          iconOpen : new OpenLayers.Icon("http://openstreetbugs.schokokeks.org/client/open_bug_marker.png", new OpenLayers.Size(22, 22), new OpenLayers.Pixel(-11, -11)),
-          iconClosed : new OpenLayers.Icon("http://openstreetbugs.schokokeks.org/client/closed_bug_marker.png", new OpenLayers.Size(22, 22), new OpenLayers.Pixel(-11, -11)),
+          iconOpen : new OpenLayers.Icon("/images/open_bug_marker.png", new OpenLayers.Size(22, 22), new OpenLayers.Pixel(-11, -11)),
+          iconClosed : new OpenLayers.Icon("/images/closed_bug_marker.png", new OpenLayers.Size(22, 22), new OpenLayers.Pixel(-11, -11)),
           readonly : false,
           setCookie : false,
           cookieLifetime : 1000, 
           cookiePath : "/my/map/", 
           permalinkURL : "http://www.openstreetmap.org/", 
-          theme : "http://osm.cdauth.de/map/openstreetbugs.css" 
+          theme : "/stylesheets/openstreetbugs.css" 
       });
 
       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 %>