fix for WFS Layer getDataExtent always pulls from markers subclass, r=tschaub

(Closes #1725)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@8929 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2009-03-02 02:06:01 +00:00
parent 0a62e921b2
commit 05887ecf50
2 changed files with 29 additions and 0 deletions
+19
View File
@@ -531,6 +531,25 @@ OpenLayers.Layer.WFS = OpenLayers.Class(
this.tile.draw();
}
},
/**
* APIMethod: getDataExtent
* Calculates the max extent which includes all of the layer data.
*
* Returns:
* {<OpenLayers.Bounds>}
*/
getDataExtent: function () {
var extent;
//get all additions from superclasses
if (this.vectorMode) {
extent = OpenLayers.Layer.Vector.prototype.getDataExtent.apply(this);
} else {
extent = OpenLayers.Layer.Markers.prototype.getDataExtent.apply(this);
}
return extent;
},
CLASS_NAME: "OpenLayers.Layer.WFS"
});