Hi Cesium Team,
I have added some of the mixins in viewer using extend method. I want to remove the mixins from viewer as per some conditions, How can I remove mixins, like we remove entities and primitives ?
Please help me.
Thank you
Basant Lal
Hi Cesium Team,
I have added some of the mixins in viewer using extend method. I want to remove the mixins from viewer as per some conditions, How can I remove mixins, like we remove entities and primitives ?
Please help me.
Thank you
Basant Lal
Are the conditions set before the viewer is created? The easiest way would be to just not add the mixins that you do not need when you create the viewer.
There isn’t a standard way to remove mixins after they have been added. The ViewerMixin is just a function that takes a viewer object and options object. It does not provide any way to disable or remove the functionality later. Depending on what mixins you are using, there might be a way to turn the functionality they provide on or off. But that would depend on the logic of the mix in.
@mdc9001 thank you so much for your valuable reply,
No, conditions are set after the viewer gets created. Btw I don’t need to remove any of the mixins since i changed the conditions and everything is working as per my expectations.
Thank you