[OpenLayers-Users] zooming a certain portion of the map

sunny74 sb.ray at hotmail.com
Fri May 14 15:46:29 EDT 2010


Dear Friends,

I have a map which I display within a div of 600 * 600 pixels.This obviously
has an extent as defined in the map  file.

Now I want to zoom a certain rectangular portion of the map so that it
covers the entire map area i.e the entire div.
Now which functions do I use zoomto Extent() or zoomtoMaxExtent().
Which of these allow me to pass bounds?
1)Extent as defined in the map file and Bounds are the same thing?PLs
confirm.
2)Bound or extent is specified using a lonlat pair in the following pattern:

longitude 1 lattitude1 longitude2 lattitude2
Where longitude 1 lattitude1 is the co-ord of bottom left point,longitude2
lattitude2 is the co-ord of the top right point of the rectangle. 

Pls confirm whether my understanding in 1 & 2 are correct or not? 
Thanks for your attention.
-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/zooming-a-certain-portion-of-the-map-tp5056929p5056929.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list