[OpenLayers-Users] OpenLayers.Layer.Vector.getDataExtent bug

Arnd Wippermann arnd.wippermann at web.de
Mon Apr 20 13:42:56 EDT 2009


Thanks,

Changing from 2.7 Stable to OpenLayer 2.8 RC1 now it works.

Arnd

 

-----Ursprüngliche Nachricht-----
Von: eric.lemoine at camptocamp.com [mailto:eric.lemoine at camptocamp.com] 
Gesendet: Sonntag, 19. April 2009 23:40
An: Arnd Wippermann
Cc: users at openlayers.org
Betreff: Re: [OpenLayers-Users] OpenLayers.Layer.Vector.getDataExtent bug

On Sat, Apr 18, 2009 at 10:58 PM, Arnd Wippermann <arnd.wippermann at web.de>
wrote:
> Hi,
>
> The function OpenLayers.Layer.Vector.getDataExtent modified the bounds 
> of the first feature of a vector layer. I would think, it's a bug and 
> can solved by adding clone()
>
> var maxExtent = this.features[0].geometry.getBounds().clone();

Hi Arnd, you're not using trunk, are you? I think
http://trac.openlayers.org/changeset/8349 fixed that bug.



--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : eric.lemoine at camptocamp.com
http://www.camptocamp.com




More information about the Users mailing list