From 363f223865b4900eedd7d046299fbeb2304db86c Mon Sep 17 00:00:00 2001 From: stefano bovio Date: Thu, 14 Sep 2023 15:33:47 +0200 Subject: [PATCH] #9362 3D Styling issue (#9403) (#9441) --- web/client/utils/styleparser/CesiumStyleParser.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/web/client/utils/styleparser/CesiumStyleParser.js b/web/client/utils/styleparser/CesiumStyleParser.js index 841a5db38e..f0848cc5f0 100644 --- a/web/client/utils/styleparser/CesiumStyleParser.js +++ b/web/client/utils/styleparser/CesiumStyleParser.js @@ -671,7 +671,10 @@ function getStyleFuncFromRules({ entity._msGlobalOpacity = undefined; return resolve(entity); })) - ); + // map.scene.requestRender(); does not work without a setTimeout + // it seems there is need of a small delay to correctly request the next map rendering + // requestRender is used by layer to update the style + ).then((response) => new Promise((resolve) => setTimeout(() => resolve(response)))); } class CesiumStyleParser {