Skip to content

Commit

Permalink
Minor fix to updated OpenLayers
Browse files Browse the repository at this point in the history
  • Loading branch information
apmon committed Apr 20, 2011
1 parent 001ff57 commit 91b9b65
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app/views/site/index.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down Expand Up @@ -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(){
Expand All @@ -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 %>
Expand Down

0 comments on commit 91b9b65

Please sign in to comment.