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 {