removed redundancy (1.0.0 leftover) when parsing srs. r=bartvde (closes #2283)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@9896 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -43,16 +43,7 @@ OpenLayers.Format.WMSCapabilities.v1_1_1 = OpenLayers.Class(
|
|||||||
readers: {
|
readers: {
|
||||||
"wms": OpenLayers.Util.applyDefaults({
|
"wms": OpenLayers.Util.applyDefaults({
|
||||||
"SRS": function(node, obj) {
|
"SRS": function(node, obj) {
|
||||||
var srs = this.getChildValue(node);
|
obj.srs[this.getChildValue(node)] = true;
|
||||||
if (srs.indexOf(" ")) {
|
|
||||||
// v1.1.0 style SRS
|
|
||||||
var values = srs.split(/ +/);
|
|
||||||
for (var i=0, len=values.length; i<len; i++) {
|
|
||||||
obj.srs[values[i]] = true;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
obj.srs[srs] = true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}, OpenLayers.Format.WMSCapabilities.v1_1.prototype.readers["wms"])
|
}, OpenLayers.Format.WMSCapabilities.v1_1.prototype.readers["wms"])
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user