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

Arnd Wippermann arnd.wippermann at web.de
Sat Apr 18 16:58:17 EDT 2009


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();


Mit freundlichen Grüssen

Arnd Wippermann
http://gis.ibbeck.de/ginfo/





More information about the Users mailing list