WFSCapabilities - support for parsing SRS and DefaultSRS nodes, p=adube, r=me (closes #3048)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@11677 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
bartvde
2011-03-08 16:19:36 +00:00
parent 49e96f352f
commit e3a5426789
3 changed files with 26 additions and 3 deletions

View File

@@ -151,7 +151,17 @@ OpenLayers.Format.WFSCapabilities.v1_0_0 = OpenLayers.Class(
read_cap_Post: function(obj, node) {
obj.post = node.getAttribute("onlineResource");
},
/**
* Method: read_cap_SRS
*/
read_cap_SRS: function(obj, node) {
var srs = this.getChildValue(node);
if (srs) {
obj.srs = srs;
}
},
CLASS_NAME: "OpenLayers.Format.WFSCapabilities.v1_0_0"
});
});