Index: Vector.js
===================================================================
--- Vector.js	(revision 6318)
+++ Vector.js	(working copy)
@@ -519,5 +519,24 @@
     preFeatureInsert: function(feature) {
     },
 
+    /** 
+     * APIMethod: getDataExtent
+     * Calculates the max extent which includes all of the features.
+     * 
+     * Returns:
+     * {<OpenLayers.Bounds>}
+     */
+    getDataExtent: function () {
+		var maxExtent = null;
+		if( this.features && (this.features.length > 0)){
+			var maxExtent = this.features[0].geometry.getBounds();
+			for(var i=0; i < this.features.length; i++){
+				maxExtent.extend(this.features[i].geometry.getBounds());
+			}
+		}
+
+		return maxExtent;
+    },
+
     CLASS_NAME: "OpenLayers.Layer.Vector"
 });
