<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">Hi,</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">I would like to disable the tickbox next to a layer when the user zooms out greater than zoom level 12. This will tell the user that the layer is deactivated.</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; ">At the moment I have the following code which simple sets the visibility , but when the zoom level is 11, the tick box is still white and can still be ticked on and off.</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div style="font-family:
arial, helvetica, sans-serif; font-size: 10pt; ">here is my code to set the visibility of the layer</div><div style="font-family: arial, helvetica, sans-serif; font-size: 10pt; "><br></div><div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">map.events.on({ "zoomend": function (e) {</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> if (this.getZoom() > 12) {<span class="Apple-tab-span" style="white-space:pre">        </span></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> layer_Flurbloeke.setVisibility(true);</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> layer_Flurbloeke.icon='../images/add.png';</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">
layer_ertrag.setVisibility(true);<span class="Apple-tab-span" style="white-space:pre">        </span> <span class="Apple-tab-span" style="white-space:pre">                        </span></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> }</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> else {</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> layer_Flurbloeke.setVisibility(false);</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> layer_ertrag.setVisibility(false);</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> }</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> }//end function
(e)</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> }); //end map.events.on </font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">Thanks for any help,</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">Rob</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><br></font></div></div></div></body></html>