I created a billboard here:
var bluePin = scope.cesium.entities.add({
name : ‘Blank blue pin’,
position : Cesium.Cartesian3.fromDegrees(posInfo.lon, posInfo.lat),
billboard : {
image : pinBuilder.fromColor(Cesium.Color.ROYALBLUE, 48).toDataURL(),
verticalOrigin : Cesium.VerticalOrigin.BOTTOM,
rotation: 0
}
});
I want to be able to click a button and change rotation of the bluePin to 180 degrees. When do I:
bluePin.position = new position
It changes position. But the following do not work:
bluePin.rotation = 180
bluePin.orientation.rotation = 180
What can I do?