Adrian Popa <adrian_gh.p...@...> writes:

> 
> Hello everybody.
> 
> I'm trying to zoom to view an area for which I have the minimum and 
> maximum longitude/latitude. Basically I would like to zoom in to see a 
> rectangle with known coordinates. I already calculated the center of 
> this rectangle - so that's not a problem - the map centers beautifully 
> to that.

Don't try it the hard way :)
Take the zoomToExtent() function an 

var zoomExtent = new OpenLayers.Bounds(left, bottom, right, top);
map.zoomToExtent(zoomExtent);

maybe you need to transform zommExtent first.

I hope that helps.
Greetings,
Fabian



_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to