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

@@ -152,6 +152,16 @@ OpenLayers.Format.WFSCapabilities.v1_0_0 = OpenLayers.Class(
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"
});

View File

@@ -31,6 +31,16 @@ OpenLayers.Format.WFSCapabilities.v1_1_0 = OpenLayers.Class(
);
},
/**
* Method: read_cap_DefaultSRS
*/
read_cap_DefaultSRS: function(obj, node) {
var defaultSRS = this.getChildValue(node);
if (defaultSRS) {
obj.srs = defaultSRS;
}
},
CLASS_NAME: "OpenLayers.Format.WFSCapabilities.v1_1_0"
});

File diff suppressed because one or more lines are too long