WMSCapabilities format may fail to correctly read BoundingBox of layers, r=fredj (closes #3449)

git-svn-id: http://svn.openlayers.org/trunk/openlayers@12209 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
Éric Lemoine
2011-08-08 04:45:41 +00:00
parent dd76c74bca
commit 61b291ee67
3 changed files with 20 additions and 8 deletions
+4 -4
View File
@@ -133,8 +133,8 @@ OpenLayers.Format.WMSCapabilities.v1 = OpenLayers.Class(
"dimensions",
"authorityURLs"];
var key;
for (var j=0; j<attributes.length; j++) {
var key, j;
for (j=0; j<attributes.length; j++) {
key = attributes[j];
if (key in parentLayer) {
// only take parent value if not present (null or undefined)
@@ -157,9 +157,9 @@ OpenLayers.Format.WMSCapabilities.v1 = OpenLayers.Class(
}
}
for (var j=0; j<complexAttr.length; j++) {
for (j=0; j<complexAttr.length; j++) {
key = complexAttr[j];
layer[key] = OpenLayers.Util.extend(
layer[key] = OpenLayers.Util.applyDefaults(
layer[key], parentLayer[key]);
}
}