My web-page has several hundred entities (each with a label and billboard). If I don't specify a terrainProvider, the entities are displayed in the correct locations and remain in the correct locations as I drag and tilt the map. However, if I set the terrainProvider so the mountains appear in 3D and then drag or tilt the map, the entities are not displayed in the correct locations and they "slide" as I drag the map (i.e., when I drag the mountains, the entities move slower than the terrain). FWIW, I'm using CLAMP_TO_GROUND to position the entities at the correct elevation.
The following code illustrates this behavior, but it isn't as obvious with only one label and no billboard (the label does, however, "slide" as as the terrain is tilted). (Side Note: even though I use zoomTo(), I usually need to zoom-out to see the label.)
var viewer = new Cesium.Viewer('cesiumContainer', {
baseLayerPicker : false,
terrainProvider : new Cesium.CesiumTerrainProvider({ url : '//assets.agi.com/stk-terrain/world' })
});
var entity = viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(-111.32, 41.00),
label : {
text : 'label',
HeightReference : Cesium.HeightReference.CLAMP_TO_GROUND
},
HeightReference : Cesium.HeightReference.CLAMP_TO_GROUND
});
viewer.zoomTo( entity );
Thanks for your help!