<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.19298"></HEAD>
<BODY bgColor=#ffffff text=#000000>
<DIV dir=ltr align=left><SPAN class=375545305-17082012><FONT color=#0000ff 
size=2 face=Arial>for the baselayer should the resolutions be 
known.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375545305-17082012><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=375545305-17082012><FONT color=#0000ff 
size=2 face=Arial>if baselayer = <SPAN class=375545305-17082012><FONT 
color=#0000ff size=2 face=Arial>map.layers[0]</FONT></SPAN></FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375545305-17082012><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=375545305-17082012><FONT color=#0000ff 
size=2 face=Arial>map.layers[0].resolutions.length</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375545305-17082012>
<DIV dir=ltr align=left><SPAN class=375545305-17082012><FONT color=#0000ff 
size=2 face=Arial>map.layers[0].resolutions[10]</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375545305-17082012>
<DIV dir=ltr align=left><SPAN class=375545305-17082012><FONT color=#0000ff 
size=2 face=Arial>map.layers[0].resolutions[14]</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375545305-17082012><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=375545305-17082012><FONT color=#0000ff 
size=2 face=Arial>this should work.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375545305-17082012><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=375545305-17082012><FONT color=#0000ff 
size=2 face=Arial>Arnd</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=375545305-17082012><FONT color=#0000ff 
size=2 face=Arial></FONT></SPAN> </DIV></SPAN></SPAN></DIV>
<DIV dir=ltr align=left>
<HR tabIndex=-1>
</DIV>
<DIV dir=ltr align=left><FONT size=2 face=Tahoma><B>Von:</B> 
openlayers-users-bounces@lists.osgeo.org 
[mailto:openlayers-users-bounces@lists.osgeo.org] <B>Im Auftrag von </B>Jan 
Tappenbeck<BR><B>Gesendet:</B> Donnerstag, 16. August 2012 16:04<BR><B>An:</B> 
users@openlayers.org<BR><B>Betreff:</B> [OpenLayers-Users] 
Limit-Zoomlevel-Problem<BR></FONT><BR></DIV></DIV>
<DIV></DIV>hi !<BR><BR>in german osm-forum [1] we discuss about the limit the 
zoomlevels and the result is:<BR><BR><PRE><CODE>// resulutions wird einmal irgendwo am Anfang definiert.

var resolutions =       [156543.03390625, 78271.516953125, 39135.7584765625,
                               19567.87923828125, 9783.939619140625, 4891.9698095703125,
                               2445.9849047851562, 1222.9924523925781, 611.4962261962891,
                               305.74811309814453, 152.87405654907226, 76.43702827453613,
                               38.218514137268066, 19.109257068634033, 9.554628534317017,
                               4.777314267158508, 2.388657133579254, 1.194328566789627,
                               0.5971642833948135];

// später

 var hkts = new OpenLayers.Layer.Vector("hkts", {
                 baselayer:  false,
                 maxResolution: resolutions[10],           
                 minResolution:  resolutions[14],           
                ... 
      });

but my question now is - is it really </CODE><SPAN id=result_box lang=en class=short_text><SPAN class=hps>required to define </SPAN></SPAN><CODE>resolutions</CODE> by the real value or is there a possibillity to define max / minresoltion directly by the zoomlevel?

regards Jan :-) <CODE>
[1] 
</CODE></PRE><BR></BODY></HTML>