You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var viewer = new Cesium.Viewer('cesiumContainer');
var pinBuilder = new Cesium.PinBuilder();
viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(-75.59777, 40.03883),
billboard :{
image : pinBuilder.fromColor(Cesium.Color.ROYALBLUE, 48).toDataURL(),
verticalOrigin : Cesium.VerticalOrigin.BOTTOM,
rotation: 0.0,
alignedAxis: Cesium.Cartesian3.ZERO // should point to top of the screen
}
});
viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(-93.0, 37.0),
billboard : {
image : pinBuilder.fromColor(Cesium.Color.RED, 48).toDataURL(),
verticalOrigin : Cesium.VerticalOrigin.BOTTOM,
rotation: 0.0,
alignedAxis: Cesium.Cartesian3.UNIT_Z // should point North
}
});
The text was updated successfully, but these errors were encountered:
Are all billboards in an EntityCollection being added to the same BillboardCollection? If so, that's the cause of the problem. The billboards behave as expected when each one is added to it's own BillboardCollection.
Yes, they all go in the same collection, which should be supported. So this is a BillboardCollection bug.
hpinkos
changed the title
Error in adding billboard entities with different alignedAxis
Error in adding billboard with different alignedAxis to the same BillboardCollection
Dec 15, 2015
reported here: https://groups.google.com/forum/#!topic/cesium-dev/e4sSCMrEmOw
The text was updated successfully, but these errors were encountered: