<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Arial; font-size: 12pt; color: #000000'>Thanks Andrew,<br><br>I get this error: <br><h4>Resolution (0.02197265625) is not with 5.0% of the closest grid resolution (0.02734375)</h4><br>Here is the snippet of the code:<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var mapOptions = { <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maxResolution: 0.703125,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; numZoomLevels: 5,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; projection: new OpenLayers.Projection('EPSG:4326'),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; maxExtent: new OpenLayers.Bounds(15,-35,33,-21) <br>&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; };<br>....<br>....<br>....<br>....<br>map.zoomToExtent(new OpenLayers.Bounds(16.45189091859184,-34.83305397094182,32.89099103755922,-22.12503003160239));<br><br>Clinton<br><br>----- Original Message -----<br>From: "Andrew de Klerk" &lt;andrew@quartex.co.za&gt;<br>To: "Africa local chapter discussions" &lt;africa@lists.osgeo.org&gt;<br>Sent: Wednesday, July 22, 2009 9:12:07 AM GMT +02:00 Harare / Pretoria<br>Subject: RE: [OSGeo Africa] OpenLayers users<br><br>




<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->


<div class="Section1">

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">Clinton</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">maxExtent: new OpenLayers.Bounds(15,-35,33,-21)</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">That should give you the extent for Southern Africa. You just
need to tweak them should you require more or less of Africa</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">&nbsp;</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">Andrew</span></p>

<p class="MsoNormal"><span style="font-size: 11pt; font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; color: rgb(31, 73, 125);">&nbsp;</span></p>

<div>

<div style="border-style: solid none none; border-color: rgb(181, 196, 223) -moz-use-text-color -moz-use-text-color; border-width: 1pt medium medium; padding: 3pt 0cm 0cm;">

<p class="MsoNormal"><b><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">From:</span></b><span style="font-size: 10pt; font-family: &quot;Tahoma&quot;,&quot;sans-serif&quot;;">
africa-bounces@lists.osgeo.org [mailto:africa-bounces@lists.osgeo.org] <b>On
Behalf Of </b>clinton.papenfus@sita.co.za<br>
<b>Sent:</b> 22 July 2009 09:07 AM<br>
<b>To:</b> africa@lists.osgeo.org<br>
<b>Subject:</b> [OSGeo Africa] OpenLayers users</span></p>

</div>

</div>

<p class="MsoNormal">&nbsp;</p>

<div>

<p class="MsoNormal"><span style="font-family: &quot;Arial&quot;,&quot;sans-serif&quot;; color: black;">Hi
All,<br>
<br>
I would like to know who in Africa is using OpenLayers. I have been using
OpenLayers for almost a year and have been battling to get the grid extents for
Southern Africa. The ones I am using is -180.0,-90.0,180.0,90.0. That basically
gives the grid for the whole of the right half of the Southern Hemisphere, with
that, all the tiles as well. Least to say, it is not the most responsive method
to use. Any help would be appreciated.<br>
<br>
I have been asked if all responses be done via the list and&nbsp; not directly
to my email address.<br>
<br>
Clinton Papenfus<br>
0833767083</span></p>

</div>

<p><span style="font-size: 10pt; font-family: &quot;Arial&quot;,&quot;sans-serif&quot;;">Checked by
AVG - www.avg.com<br>
Version: 8.5.392 / Virus Database: 270.13.17/2242 - Release Date: 07/21/09
18:02:00</span></p>

</div>

<br>_______________________________________________
Africa mailing list
Africa@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/africa
</div></body></html>