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:
@@ -152,6 +152,16 @@ OpenLayers.Format.WFSCapabilities.v1_0_0 = OpenLayers.Class(
|
|||||||
obj.post = node.getAttribute("onlineResource");
|
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"
|
CLASS_NAME: "OpenLayers.Format.WFSCapabilities.v1_0_0"
|
||||||
|
|
||||||
});
|
});
|
||||||
@@ -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"
|
CLASS_NAME: "OpenLayers.Format.WFSCapabilities.v1_1_0"
|
||||||
|
|
||||||
});
|
});
|
||||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user