Only show "Report a problem" link at zoom level 12 and higher
This commit is contained in:
parent
b3d62bb85a
commit
c322b0c298
1 changed files with 4 additions and 1 deletions
|
@ -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="javascript:void();" id="ReportBug">Report a problem</a>
|
||||
<a href="javascript:void();" id="ReportBug" class="reportProblem">Report a problem</a>
|
||||
</div>
|
||||
|
||||
<div id="attribution">
|
||||
|
@ -163,6 +163,9 @@ end
|
|||
lBug.addEventListener('click',function (e) {
|
||||
map.osbControl.activate(); document.getElementById("OpenLayers.Map_18_OpenLayers_Container").style.cursor = "crosshair" },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";}});
|
||||
|
||||
|
||||
<% end %>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue