cesium icon indicating copy to clipboard operation
cesium copied to clipboard

Labels with a callbackproperty of `show` will be in reversed order when the camera zoomed

Open chenwoniu opened this issue 2 weeks ago • 5 comments

What happened?

Labels' order will be reversed when their visibility property changed.

Reproduction steps

  1. Add several labels with a callback show property depending on the camera height.
  2. 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:

chenwoniu avatar Dec 03 '25 04:12 chenwoniu

Possibly related:

  • #4108

donmccurdy avatar Dec 03 '25 21:12 donmccurdy

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'.

chenwoniu avatar Dec 04 '25 01:12 chenwoniu

Yeah, that's a strange one...

Image

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.

javagl avatar Dec 04 '25 11:12 javagl

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

lukemckinstry avatar Dec 04 '25 21:12 lukemckinstry

Yes, it appeared in 1.134.

chenwoniu avatar Dec 05 '25 00:12 chenwoniu