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

Eric Lemoine eric.lemoine at camptocamp.com
Sun Apr 19 17:40:05 EDT 2009


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