hi,<br>thanks for the answer.<br>I saw the examples and It looks like minScale and maxScale refer either to the map object or third part layers.<br><br>I tried this code (and several more) on a WMS Layer without any luck.<br>
I mean the layer is always visible.<br><br>Also, when I execute getScale the values are quite understandable. (like 107 for the whole territory of spain!!!!).<br><br>var catastreLayer = new OpenLayers.Layer.WMS(<br>                        &quot;Cadastre&quot;,<br>
                        &quot;<a href="http://ovc.catastro.meh.es/Cartografia/WMS/ServidorWMS.aspx">http://ovc.catastro.meh.es/Cartografia/WMS/ServidorWMS.aspx</a>&quot;,<br>                        {layers: &#39;Catastro&#39;, transparent: &quot;true&quot;, format: &quot;image/png&quot;},{tileSize: new  OpenLayers.Size(512,512), singleTile:true, buffer: 0,minScale: 1/100,maxScale: 1/400}<br>
            );<br>map.addLayer([catastreLayer]);<br><br><div class="gmail_quote">2009/4/15 Bill Thoen <span dir="ltr">&lt;<a href="mailto:bthoen@gisnet.com">bthoen@gisnet.com</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
There&#39;s a good description on that subject right here:<br>
<a href="http://trac.openlayers.org/wiki/SettingZoomLevels" target="_blank">http://trac.openlayers.org/wiki/SettingZoomLevels</a><br><font color="#888888">
<br>
- Bill Thoen</font><div><div></div><div class="h5"><br>
<br>
toni hernández wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Does anyone know if it is possible to set the minscale and maxscale on a layer so it shows and hides depending on the scale of the map.<br>
<br>
If tried to specify minScale:100, maxScale: 5000 (so the layer appears between the two scales) on the layer but the layer is still always visible.<br>
</blockquote>
<br>
</div></div></blockquote></div><br>