Skip to content

Commit

Permalink
#9362 3D Styling issue (#9403) (#9441)
Browse files Browse the repository at this point in the history
  • Loading branch information
allyoucanmap authored Sep 14, 2023
1 parent f22fecb commit 363f223
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/client/utils/styleparser/CesiumStyleParser.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 363f223

Please sign in to comment.