diff --git a/lib/OpenLayers/Geometry/Collection.js b/lib/OpenLayers/Geometry/Collection.js index 39be8d74a2..aa5f987476 100644 --- a/lib/OpenLayers/Geometry/Collection.js +++ b/lib/OpenLayers/Geometry/Collection.js @@ -108,12 +108,19 @@ OpenLayers.Geometry.Collection = OpenLayers.Class(OpenLayers.Geometry, { */ calculateBounds: function() { this.bounds = null; - if ( this.components && this.components.length > 0) { - this.setBounds(this.components[0].getBounds()); - for (var i=1, len=this.components.length; i