There is problem witch rendering label for clustered points with billboards as background. It works perfectly for low zoom levels, but when I zoom out the globe the glitch in labels appears.
eventSet.clustering.enabled = shouldCluster;
eventSet.clustering.pixelRange = 100;
eventSet.clustering.minimumClusterSize = 2;
eventSet.clustering.clusterEvent.addEventListener((clusteredEntities, cluster) => {
cluster.label.font = '15px Roboto';
cluster.label.fillColor = Cesium.Color.fromCssColorString('#ffffff');
cluster.label.outlineColor = Cesium.Color.fromCssColorString('#3F3F43');
cluster.label.outlineWidth = 3;
cluster.label.text = clusteredEntities.length.toLocaleString();
cluster.label.style = Cesium.LabelStyle.FILL_AND_OUTLINE;
cluster.label.verticalOrigin = Cesium.VerticalOrigin.CENTER;
cluster.label.horizontalOrigin = Cesium.HorizontalOrigin.CENTER;
cluster.label.heightReference = Cesium.HeightReference.CLAMP_TO_GROUND;
cluster.billboard.show = true;
cluster.billboard.verticalOrigin = Cesium.VerticalOrigin.CENTER;
cluster.billboard.heightReference = Cesium.HeightReference.CLAMP_TO_GROUND;
cluster.billboard.image = clusterCircleIcon(clusteredEntities.length.toString().length);
cluster.billboard.disableDepthTestDistance = 1;
});
I’m using disableDepthTestDistance it helps a little but no at all z-levels