<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=906335612-16042009><FONT face=Arial
color=#0000ff size=2>Hi,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=906335612-16042009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=906335612-16042009><FONT face=Arial
color=#0000ff size=2>I use minScale and maxScale for WMS layers, but my scales
more like 6643704 (EPSG:4326, EPSG:32627) to display whole Spain. Perhaps you
have to set max and minResolution.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=906335612-16042009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=906335612-16042009><FONT face=Arial
color=#0000ff size=2>Arnd</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=906335612-16042009><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT face=Tahoma size=2><B>Von:</B>
users-bounces@openlayers.org [mailto:users-bounces@openlayers.org] <B>Im Auftrag
von </B>toni hernández<BR><B>Gesendet:</B> Donnerstag, 16. April 2009
12:51<BR><B>An:</B> Bill Thoen<BR><B>Cc:</B>
users@openlayers.org<BR><B>Betreff:</B> Re: [OpenLayers-Users] minScale maxScale
on layer<BR></FONT><BR></DIV>
<DIV></DIV>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>
"Cadastre",<BR>
"<A
href="http://ovc.catastro.meh.es/Cartografia/WMS/ServidorWMS.aspx">http://ovc.catastro.meh.es/Cartografia/WMS/ServidorWMS.aspx</A>",<BR>
{layers: 'Catastro', transparent: "true", format: "image/png"},{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><<A
href="mailto:bthoen@gisnet.com">bthoen@gisnet.com</A>></SPAN><BR>
<BLOCKQUOTE class=gmail_quote
style="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">There'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="PADDING-LEFT: 1ex; MARGIN: 0pt 0pt 0pt 0.8ex; BORDER-LEFT: rgb(204,204,204) 1px solid">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></BODY></HTML>