[OpenLayers-Users] Zoom-in

Frank Sokolic sokolic at worldonline.co.za
Mon Nov 7 15:57:07 EST 2011


Hi Sarel,

Have you defined a resolutions array for the map? If not, you might find that defining an array with resolutions corresponding to the zoom levels required to view your building extents will help.


Regards, Frank.


From: geotech.sarel at gmail.com
Sent:2011-11-07 22:13:11
To: openlayers-users at lists.osgeo.org
Cc: 
Subject: [OpenLayers-Users] Zoom-in
Good day

I ran into some trouble with zoom-in or extents using EPSG:4326
I'm using a building-layer in openlayers. I have extracted each building's EXTENT into a file which I then use to populate the boundbox in openlayer, I'm trying to display the a specific building in openlayers using the defined extents and I can't get the required depth of zoom.

I found that I could only zoom-in to a certain level, this is not the required level, I need to zoom-in more so the entire building centers on the page. 

I am using mapserver to pushout WMS into openlayers.

Here is an example of an extent of a building:
39.188112, -6.165252, 39.188305, -6.165057

Your help will be great.




Sarel Coetzer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20111107/9f83f3a9/attachment.html


More information about the Users mailing list