[OpenLayers-Users] Re: Merge Bounds?

Jan Henrik Øverland janhenrik.overland at gmail.com
Fri Aug 19 15:34:21 EDT 2011


Sorry, I can use extend().

On Fri, Aug 19, 2011 at 21:30, Jan Henrik Øverland <
janhenrik.overland at gmail.com> wrote:

> The vector layer getDataExtent() function returns a Bounds object. I have
> several vector layers and want to zoomToExtent() so that all of them fit in.
>
> Is there an easy way to merge Bounds objects? Or do I have to collect the
> left, bottom, right, top from all of them and create my own Bounds with the
> greater values?
>
> Jan
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20110819/043edeb4/attachment.html


More information about the Users mailing list