[OSGeo Africa] OpenLayers users

Clinton Papenfus clinton.papenfus at sita.co.za
Wed Jul 22 03:47:51 EDT 2009

Thanks Andrew, 

I get this error: 
Resolution (0.02197265625) is not with 5.0% of the closest grid resolution (0.02734375) 

Here is the snippet of the code: 

var mapOptions = { 
maxResolution: 0.703125, 
numZoomLevels: 5, 
projection: new OpenLayers.Projection('EPSG:4326'), 
maxExtent: new OpenLayers.Bounds(15,-35,33,-21) 
map.zoomToExtent(new OpenLayers.Bounds(16.45189091859184,-34.83305397094182,32.89099103755922,-22.12503003160239)); 


----- Original Message ----- 
From: "Andrew de Klerk" <andrew at quartex.co.za> 
To: "Africa local chapter discussions" <africa at lists.osgeo.org> 
Sent: Wednesday, July 22, 2009 9:12:07 AM GMT +02:00 Harare / Pretoria 
Subject: RE: [OSGeo Africa] OpenLayers users 


maxExtent: new OpenLayers.Bounds(15,-35,33,-21) 

That should give you the extent for Southern Africa. You just need to tweak them should you require more or less of Africa 


From: africa-bounces at lists.osgeo.org [mailto:africa-bounces at lists.osgeo.org] On Behalf Of clinton.papenfus at sita.co.za 
Sent: 22 July 2009 09:07 AM 
To: africa at lists.osgeo.org 
Subject: [OSGeo Africa] OpenLayers users 

Hi All, 

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. 

I have been asked if all responses be done via the list and not directly to my email address. 

Clinton Papenfus 

Checked by AVG - www.avg.com 
Version: 8.5.392 / Virus Database: 270.13.17/2242 - Release Date: 07/21/09 18:02:00 
_______________________________________________ Africa mailing list Africa at lists.osgeo.org http://lists.osgeo.org/mailman/listinfo/africa 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/africa/attachments/20090722/4ba31014/attachment.html

More information about the Africa mailing list