<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2">Hi,</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">I have a layer ("</font><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: 13px; ">layer_topo") </span><span class="Apple-style-span" style="font-family: arial, helvetica, sans-serif; font-size: 13px; ">whose visibility is set to false unless zoom level 15 is reached. This works, but after the layer is loaded, it doesn't zoom out again.</span></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">Do I have to do something else to make the layer dynamic?</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><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><a href="http://maps.zgb.de/www/eeg/lws.html">http://maps.zgb.de/www/eeg/lws.html</a><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">map.events.on({"zoomend": function (e) {</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> if (this.getZoom() > 14) {<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_topo.setVisibility(true);</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> <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"> </font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"> var coords = prncenter();</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">        </span> // alert(test);</font></div><div><font class="Apple-style-span" face="arial, helvetica, sans-serif" size="2"><span class="Apple-tab-span" style="white-space:pre">        </span> Ext.getCmp('coords').value=coords;</font></div><div><font class="Apple-style-span" face="arial,
helvetica, sans-serif" size="2"><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"> }//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></div></body></html>