From 962f1eecc0ef3268cf0e1e55ea018a2051b61654 Mon Sep 17 00:00:00 2001 From: oterral Date: Fri, 29 Aug 2014 15:21:33 +0200 Subject: [PATCH] Set inherited values --- src/ol/format/wmscapabilitiesformat.js | 1 + test/spec/ol/format/wmscapabilities.test.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ol/format/wmscapabilitiesformat.js b/src/ol/format/wmscapabilitiesformat.js index 13a7936692..a3d9be5ffc 100644 --- a/src/ol/format/wmscapabilitiesformat.js +++ b/src/ol/format/wmscapabilitiesformat.js @@ -327,6 +327,7 @@ ol.format.WMSCapabilities.readLayer_ = function(node, objectStack) { if (goog.isDef(parentValue)) { var childValue = goog.object.setIfUndefined(layerObject, key, []); childValue = childValue.concat(parentValue); + goog.object.set(layerObject, key, childValue); } }); diff --git a/test/spec/ol/format/wmscapabilities.test.js b/test/spec/ol/format/wmscapabilities.test.js index 4cebad7bce..8505866392 100644 --- a/test/spec/ol/format/wmscapabilities.test.js +++ b/test/spec/ol/format/wmscapabilities.test.js @@ -97,7 +97,7 @@ describe('ol.format.WMSCapabilities', function() { expect(layer.Layer.length).to.eql(4); expect(layer.Layer[0].Name).to.eql('ROADS_RIVERS'); expect(layer.Layer[0].Title).to.eql('Roads and Rivers'); - expect(layer.Layer[0].CRS).to.eql(['EPSG:26986']); + expect(layer.Layer[0].CRS).to.eql(['EPSG:26986', 'CRS:84']); expect(layer.Layer[0].Identifier).to.eql(['123456']); expect(layer.Layer[0].BoundingBox).to.eql([{ crs: 'CRS:84',