You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When setting an expression on the style, the getExpression function not only receives this.style and value but also key. The key is then set on this.style to reflect the current value. You can see an implementation of this solution here, I would gladly open a PR for this.
The text was updated successfully, but these errors were encountered:
The Issue
If a
Cesium3DTileStyle
is created, its options are used to populate the readonlystyle
property, which is described by the docs as follows:This is not the case, since
style.style
is only evaluated at style creation. Thus the following fails, making cloning & persisting of styles tedious:Proposed Solution
When setting an expression on the style, the
getExpression
function not only receivesthis.style
andvalue
but alsokey
. The key is then set onthis.style
to reflect the current value. You can see an implementation of this solution here, I would gladly open a PR for this.The text was updated successfully, but these errors were encountered: