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:
@@ -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]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user