Labels with a callbackproperty of `show` will be in reversed order when the camera zoomed
What happened?
Labels' order will be reversed when their visibility property changed.
Reproduction steps
- Add several labels with a callback
showproperty depending on the camera height. - Zoom the camera and focus on the labels' order.
...
Sandcastle example
https://sandcastle.cesium.com/#c=bVJhb9owEP0rp2gfwmDOWAdVQ0DbYN2QWkAtqzQpEjXJQaw6dmQ7MFrlv89JCC3a/OXsd++dz+/M0kwqA++BahijZnkKGyVTCJ2oOoXOIBShiKTQBnYM96hgCAL3RzZ5qDC34Y+lMJQJVKHTqpQbqcDlaIBZXXdgQzCEno3tdgteQgHHqgSFYYahJjSO3SoBkEltMSn85rYxVcbuqLggZZsT3CpE7X647JFu/3O337/swMUVuep9Khe0gbU6dSlO18h9OBYGMPjH+PBYwe9eWPHYaTI6kftvNHraKpmL2AejcjwlY6bpmuMEM5MsUZsJ04aKCH2Y5enaPmMxv58upw/fV9PZ9XQ2Xf4+SRNk28Tc4QYVVorjm36e42R88/V2sVrOVz/u5r9mk7O+/LfWjynna9voQskMlTm4bguGo9cnAtRjqy+29h+djmiKipLG3NJTuVU0S1hEau7gtYRCkyvR1LCz636s1olSdGBDucbG6KKKRTn9IhROxwm0OXAclegXVn+3XHGXEM9gmnFqB+qt8+gJDYm0LnWB10iCmO2AxcP/fC+IONXaZjY55/fsGUNnFHiWfybjksZMbOc7VJweSkrSHd3UICEk8OzxX5WR0jqr3lT8Cw
Environment
Browser: CesiumJS Version: 1.134+ Operating System:
Possibly related:
- #4108
I mean the entities seem to have exchanged their label text each other. It happens not always but sometimes when changing their visibility. I'm not sure if it's related to 'z-ording'.
Yeah, that's a strange one...
Likely not related to ~"low-level aspects of the rendering", but beyond that, I won't even try to guess what could be happening there.
This may be a recent regression, I am unable to reproduce in 1.131.
I'm not sure if that is the most recent version without the bug.
https://github.com/user-attachments/assets/bfd693e1-bd6f-4000-92e0-6986a2ed68ec
Yes, it appeared in 1.134.