Adding more complete WMS capabilities parsing. Thanks trondmm for the comprehensive patch. Some minor changes by me - including leaving the srs member value an object. r=me (closes #2164)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9664 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -32,6 +32,17 @@ OpenLayers.Format.WMSCapabilities.v1_1_0 = OpenLayers.Class(
|
||||
);
|
||||
},
|
||||
|
||||
/**
|
||||
* Method: read_cap_SRS
|
||||
*/
|
||||
read_cap_SRS: function(layer, node) {
|
||||
var srs = this.getChildValue(node);
|
||||
var values = srs.split(/ +/);
|
||||
for (var i=0, len=values.length; i<len; i++) {
|
||||
layer.srs[values[i]] = true;
|
||||
}
|
||||
},
|
||||
|
||||
CLASS_NAME: "OpenLayers.Format.WMSCapabilities.v1_1_0"
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user