Move WCS_Capabilities reader into v_1_0_0 class
This commit is contained in:
@@ -50,21 +50,6 @@ OpenLayers.Format.WCSCapabilities.v1 = OpenLayers.Class(
|
||||
return capabilities;
|
||||
},
|
||||
|
||||
/**
|
||||
* Property: readers
|
||||
* Contains public functions, grouped by namespace prefix, that will
|
||||
* be applied when a namespaced node is found matching the function
|
||||
* name. The function will be applied in the scope of this parser
|
||||
* with two arguments: the node being read and a context object passed
|
||||
* from the parent.
|
||||
*/
|
||||
readers: {
|
||||
"wcs": {
|
||||
"WCS_Capabilities": function(node, obj) { // In 1.0.0, this was WCS_Capabilties, changed in 1.1.0
|
||||
this.readChildNodes(node, obj);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
CLASS_NAME: "OpenLayers.Format.WCSCapabilities.v1"
|
||||
|
||||
|
||||
@@ -59,6 +59,9 @@ OpenLayers.Format.WCSCapabilities.v1_0_0 = OpenLayers.Class(
|
||||
*/
|
||||
readers: {
|
||||
"wcs": OpenLayers.Util.applyDefaults({
|
||||
"WCS_Capabilities": function(node, obj) {
|
||||
this.readChildNodes(node, obj);
|
||||
},
|
||||
"Service": function(node, obj) {
|
||||
obj.service = {};
|
||||
this.readChildNodes(node, obj.service);
|
||||
|
||||
@@ -58,7 +58,6 @@ OpenLayers.Format.WCSCapabilities.v1_1_0 = OpenLayers.Class(
|
||||
*/
|
||||
readers: {
|
||||
"wcs": OpenLayers.Util.applyDefaults({
|
||||
|
||||
// In 1.0.0, this was WCS_Capabilties, in 1.1.0, it's Capabilities
|
||||
"Capabilities": function(node, obj) {
|
||||
this.readChildNodes(node, obj);
|
||||
|
||||
Reference in New Issue
Block a user