I’ve observed that using a COLUMBUS VIEW the drawing order of the entities is not deterministic. Depending on the zoom level, the entity is drawn in a different order. See the following example:
var viewer = new Cesium.Viewer(
``
‘cesiumContainer’,
{
sceneMode: Cesium.SceneMode.COLUMBUS_VIEW
}
);
viewer.entities.add({
name : 'Red line on the surface',
polyline : {
positions : Cesium.Cartesian3.fromDegreesArrayHeights(
[
-75, 0, 10,
-80, 0, 10
]
),
width : 5,
material : Cesium.Color.RED
}
});
viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(-77.5, 0, 9.5),
billboard :{
image : '../images/Cesium_Logo_overlay.png'
}
});
There are two entities, a red line and a billboard. The Z coordinate of the line is 10 and the Z coordinate of the billboard is 9.5. If you load the example in the SandCastle will observe that depending on the zoom level, the drawing order changes.
I’ve seen in other old posts that I can use the eyeOffset attribute but, if I’m in COLUMBUS VIEW, why I need to define an offset? I suppose that I’m misunderstanding something…
Regards,
Jorge