diff --git a/web/client/utils/LayersUtils.js b/web/client/utils/LayersUtils.js index 2ba6c2674d..4df8de47a8 100644 --- a/web/client/utils/LayersUtils.js +++ b/web/client/utils/LayersUtils.js @@ -657,7 +657,8 @@ export const saveLayer = (layer) => { layer.tileGridCacheSupport ? { tileGridCacheSupport: layer.tileGridCacheSupport } : {}, isString(layer.rowViewer) ? { rowViewer: layer.rowViewer } : {}, !isNil(layer.forceProxy) ? { forceProxy: layer.forceProxy } : {}, - !isNil(layer.disableFeaturesEditing) ? { disableFeaturesEditing: layer.disableFeaturesEditing } : {}); + !isNil(layer.disableFeaturesEditing) ? { disableFeaturesEditing: layer.disableFeaturesEditing } : {}, + layer.pointCloudShading ? { pointCloudShading: layer.pointCloudShading } : {}); }; /** diff --git a/web/client/utils/__tests__/LayersUtils-test.js b/web/client/utils/__tests__/LayersUtils-test.js index 7e628fc827..4354ed5394 100644 --- a/web/client/utils/__tests__/LayersUtils-test.js +++ b/web/client/utils/__tests__/LayersUtils-test.js @@ -1246,6 +1246,20 @@ describe('LayersUtils', () => { l => { expect(l.disableFeaturesEditing).toBeTruthy(); } + ], + [ + { + pointCloudShading: { + attenuation: true, + maximumAttenuation: 4, + eyeDomeLighting: true, + eyeDomeLightingStrength: 1, + eyeDomeLightingRadius: 1 + } + }, + l => { + expect(l.pointCloudShading).toBeTruthy(); + } ] ]; layers.map(([layer, test]) => test(LayersUtils.saveLayer(layer)) );