<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR></HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class="objectBox objectBox-string"><SPAN
class=562025221-02022010><FONT face=Arial color=#0000ff
size=2>Hi,</FONT></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class="objectBox objectBox-string"><SPAN
class=562025221-02022010><FONT face=Arial color=#0000ff
size=2></FONT></SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class="objectBox objectBox-string"><SPAN
class=562025221-02022010><FONT face=Arial color=#0000ff size=2>that's from an
<FONT color=#656c70 size=3>OS OpenSpace map for the whole
UK:</FONT></FONT></SPAN></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class="objectBox objectBox-string"><SPAN
class=562025221-02022010><FONT face=Arial
color=#656c70></FONT></SPAN></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN
class="objectBox objectBox-string">osMap.getMaxResolution()<SPAN
class=562025221-02022010> : </SPAN>2500</SPAN></DIV>
<DIV dir=ltr align=left><SPAN
class="objectBox objectBox-string">osMap.getExtent()<SPAN
class=562025221-02022010> for zoomLevel 0 (whole UK) :
</SPAN>left-bottom=(-611483,-135514) right-top=(1888517,1364486) </SPAN></DIV>
<DIV dir=ltr align=left><SPAN
class="objectBox objectBox-string">osMap.resolutions<SPAN
class=562025221-02022010> : [</SPAN>2500,1000,500,200,100,50,25,10,5,2,1<SPAN
class=562025221-02022010>]</SPAN></SPAN></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=562025221-02022010><FONT face=Arial color=#0000ff size=2>The
example you refer to, seems to display only a small area of the UK, perhaps
Southampton.</FONT></SPAN></DIV>
<DIV><SPAN class=562025221-02022010><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=562025221-02022010></SPAN>A<SPAN
class=562025221-02022010>rnd</SPAN><BR></DIV>
<DIV class=OutlookMessageHeader lang=de dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>Von:</B> users-bounces@openlayers.org
[mailto:users-bounces@openlayers.org] <B>Im Auftrag von
</B>jbloc1878@googlemail.com<BR><B>Gesendet:</B> Dienstag, 2. Februar 2010
18:52<BR><B>An:</B> users@openlayers.org<BR><B>Betreff:</B> [OpenLayers-Users]
Maxextent, resolution and zoom issue<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV><SPAN class=Apple-style-span
style="FONT-SIZE: 13px; COLOR: rgb(0,0,128); FONT-FAMILY: Arial; webkit-tap-highlight-color: rgba(26, 26, 26, 0.28125); webkit-composition-fill-color: rgba(175, 192, 227, 0.214844); webkit-composition-frame-color: rgba(77, 128, 180, 0.214844)">Hi,
i have been struggling with this problem for some time now.</SPAN><BR></DIV>
<DIV><SPAN class=Apple-style-span
style="FONT-SIZE: 13px; webkit-tap-highlight-color: rgba(26, 26, 26, 0.296875); webkit-composition-fill-color: rgba(175, 192, 227, 0.230469); webkit-composition-frame-color: rgba(77, 128, 180, 0.230469)">
<P class=MsoNormal
style="FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: 'Times New Roman'"><SPAN
class=Apple-style-span
style="FONT-SIZE: 13px; COLOR: rgb(0,0,128); FONT-FAMILY: Arial"><BR></SPAN></P>
<P class=MsoNormal
style="FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: 'Times New Roman'"><FONT
face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Basically I am trying
to display two layers. 50k and 250K of the uk. Can anyone explain further what
resolution, maxextent and zoom values I should have to display these layers
correctly? My layers cover the whole of the <ST1:PLACE
w:st="on"><ST1:COUNTRY-REGION w:st="on">UK</ST1:COUNTRY-REGION></ST1:PLACE>. I
have tried quite a few different values however I cannot make sense of how this
works. The example I am referring to is below.<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal
style="FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: 'Times New Roman'"><FONT
face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal
style="FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: 'Times New Roman'"><FONT
face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks for any help in
advance<O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal
style="FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: 'Times New Roman'"><FONT
face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal
style="FONT-SIZE: 12pt; MARGIN: 0cm 0cm 15.45pt; LINE-HEIGHT: 15.45pt; FONT-FAMILY: 'Times New Roman'"><FONT
face=Arial color=#656c70 size=2><SPAN lang=EN
style="FONT-SIZE: 10.5pt; COLOR: rgb(101,108,112); FONT-FAMILY: Arial">Create an
options object that holds a limited set of map resolutions and a maximum
bounding extent to show the map. A new OS OpenSpace map object is created by
passing in our 'map' HTML div element id and the map
options.<O:P></O:P></SPAN></FONT></P>
<DIV
style="BORDER-RIGHT: rgb(204,204,204) 1pt solid; PADDING-RIGHT: 0cm; BORDER-TOP: rgb(204,204,204) 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: rgb(204,204,204) 1pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: rgb(204,204,204) 1pt solid">
<P class=MsoNormal
style="FONT-SIZE: 12pt; MARGIN: 0cm 1.65pt 1.65pt 72pt; TEXT-INDENT: -18pt; LINE-HEIGHT: 15.45pt; FONT-FAMILY: 'Times New Roman'; BACKGROUND-COLOR: rgb(238,238,238); webkit-background-clip: initial; webkit-background-origin: initial"><FONT
face=Arial color=#999999 size=2><SPAN lang=EN
style="FONT-SIZE: 10.5pt; COLOR: rgb(153,153,153); FONT-FAMILY: Arial"><SPAN>1.<FONT
face="Times New Roman" size=1><SPAN
style="FONT: 7pt 'Times New Roman'"> </SPAN></FONT></SPAN></SPAN></FONT><CODE
style="COLOR: rgb(46,49,146); FONT-FAMILY: 'Courier New'"><FONT
face="Courier New" color=#2e3192 size=2><SPAN lang=EN
style="FONT-SIZE: 10pt">var options = {resolutions: [10,
5],</SPAN></FONT></CODE><FONT face=Arial color=#999999 size=2><SPAN lang=EN
style="FONT-SIZE: 10.5pt; COLOR: rgb(153,153,153); FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal
style="FONT-SIZE: 12pt; MARGIN: 0cm 1.65pt 1.65pt 72pt; TEXT-INDENT: -18pt; LINE-HEIGHT: 15.45pt; FONT-FAMILY: 'Times New Roman'; BACKGROUND-COLOR: rgb(238,238,238); webkit-background-clip: initial; webkit-background-origin: initial"><FONT
face=Arial color=#999999 size=2><SPAN lang=EN
style="FONT-SIZE: 10.5pt; COLOR: rgb(153,153,153); FONT-FAMILY: Arial"><SPAN>2.<FONT
face="Times New Roman" size=1><SPAN
style="FONT: 7pt 'Times New Roman'"> </SPAN></FONT></SPAN></SPAN></FONT><CODE
style="COLOR: rgb(46,49,146); FONT-FAMILY: 'Courier New'"><FONT
face="Courier New" color=#2e3192 size=2><SPAN lang=EN
style="FONT-SIZE: 10pt"> maxExtent:
new OpenSpace.MapBounds(400000, 100000, 450000, 150000)
);</SPAN></FONT></CODE><FONT face=Arial color=#999999 size=2><SPAN lang=EN
style="FONT-SIZE: 10.5pt; COLOR: rgb(153,153,153); FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal
style="FONT-SIZE: 12pt; MARGIN: 0cm 1.65pt 1.65pt 72pt; TEXT-INDENT: -18pt; LINE-HEIGHT: 15.45pt; FONT-FAMILY: 'Times New Roman'; BACKGROUND-COLOR: rgb(238,238,238); webkit-background-clip: initial; webkit-background-origin: initial"><FONT
face=Arial color=#999999 size=2><SPAN lang=EN
style="FONT-SIZE: 10.5pt; COLOR: rgb(153,153,153); FONT-FAMILY: Arial"><SPAN>3.<FONT
face="Times New Roman" size=1><SPAN
style="FONT: 7pt 'Times New Roman'"> </SPAN></FONT></SPAN></SPAN></FONT><CODE
style="COLOR: rgb(46,49,146); FONT-FAMILY: 'Courier New'"><FONT
face="Courier New" color=#2e3192 size=2><SPAN lang=EN
style="FONT-SIZE: 10pt">osMap = new OpenSpace.Map('map',
options);</SPAN></FONT></CODE><FONT face=Arial color=#999999 size=2><SPAN
lang=EN
style="FONT-SIZE: 10.5pt; COLOR: rgb(153,153,153); FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P></DIV>
<P class=MsoNormal
style="FONT-SIZE: 12pt; MARGIN: 0cm 0cm 15.45pt; LINE-HEIGHT: 15.45pt; FONT-FAMILY: 'Times New Roman'"><FONT
face=Arial color=#656c70 size=2><SPAN lang=EN
style="FONT-SIZE: 10.5pt; COLOR: rgb(101,108,112); FONT-FAMILY: Arial">We now
set the centre of the map and set the initial map zoom level to 1 (corresponding
to the second defined layer in the resolutions
array).<O:P></O:P></SPAN></FONT></P>
<DIV
style="BORDER-RIGHT: rgb(204,204,204) 1pt solid; PADDING-RIGHT: 0cm; BORDER-TOP: rgb(204,204,204) 1pt solid; PADDING-LEFT: 0cm; PADDING-BOTTOM: 0cm; BORDER-LEFT: rgb(204,204,204) 1pt solid; PADDING-TOP: 0cm; BORDER-BOTTOM: rgb(204,204,204) 1pt solid">
<P class=MsoNormal
style="FONT-SIZE: 12pt; MARGIN: 0cm 1.65pt 1.65pt 72pt; TEXT-INDENT: -18pt; LINE-HEIGHT: 15.45pt; FONT-FAMILY: 'Times New Roman'; BACKGROUND-COLOR: rgb(238,238,238); webkit-background-clip: initial; webkit-background-origin: initial"><FONT
face=Arial color=#999999 size=2><SPAN lang=EN
style="FONT-SIZE: 10.5pt; COLOR: rgb(153,153,153); FONT-FAMILY: Arial"><SPAN>1.<FONT
face="Times New Roman" size=1><SPAN
style="FONT: 7pt 'Times New Roman'"> </SPAN></FONT></SPAN></SPAN></FONT><CODE
style="COLOR: rgb(46,49,146); FONT-FAMILY: 'Courier New'"><FONT
face="Courier New" color=#2e3192 size=2><SPAN lang=EN
style="FONT-SIZE: 10pt">osMap osMap.setCenter(new
OpenSpace.MapPoint(400000,100000), 1);</SPAN></FONT></CODE><FONT face=Arial
color=#999999 size=2><SPAN lang=EN
style="FONT-SIZE: 10.5pt; COLOR: rgb(153,153,153); FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P></DIV>
<P class=MsoNormal
style="FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: 'Times New Roman'"><FONT
face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"><O:P></O:P></SPAN></FONT></P>
<P class=MsoNormal
style="FONT-SIZE: 12pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: 'Times New Roman'"><FONT
face=Arial color=navy size=2><SPAN
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Cheers</SPAN></FONT></P></SPAN><BR><BR></DIV></BODY></HTML>