From da7a87690434bdd4ba1728a9f68bed9724a53a34 Mon Sep 17 00:00:00 2001 From: stefano bovio Date: Mon, 15 May 2023 10:32:01 +0200 Subject: [PATCH] Fix #9159 Map views mask is not working (#9160) (#9167) --- web/client/epics/__tests__/mapviews-test.js | 20 ++++++++++++++++++++ web/client/epics/mapviews.js | 4 +++- 2 files changed, 23 insertions(+), 1 deletion(-) diff --git a/web/client/epics/__tests__/mapviews-test.js b/web/client/epics/__tests__/mapviews-test.js index 39b5ecbd6e..94e910ef0a 100644 --- a/web/client/epics/__tests__/mapviews-test.js +++ b/web/client/epics/__tests__/mapviews-test.js @@ -89,6 +89,26 @@ describe('mapviews epics', () => { UPDATE_ADDITIONAL_LAYER, UPDATE_ADDITIONAL_LAYER ]); + + expect(actions[4].options.style).toBeTruthy(); + expect(actions[4].options.style).toEqual({ + format: 'geostyler', + body: { + name: '', + rules: [ + { + name: '', + symbolizers: [{ + kind: 'Fill', + color: '#ffffff', + fillOpacity: 0, + msClampToGround: true, + msClassificationType: '3d' + }] + } + ] + } + }); } catch (e) { done(e); } diff --git a/web/client/epics/mapviews.js b/web/client/epics/mapviews.js index bb46441821..8efa93e335 100644 --- a/web/client/epics/mapviews.js +++ b/web/client/epics/mapviews.js @@ -180,7 +180,9 @@ export const updateMapViewsLayers = (action$, store) => symbolizers: [{ kind: 'Fill', color: '#ffffff', - fillOpacity: 0 + fillOpacity: 0, + msClampToGround: true, + msClassificationType: '3d' }] } ]