I have an entity with an existing position of Cesium.
var pin = viewer.entities.add({
position : Cesium.Cartesian3.fromDegrees(-75.170726, 39.9208667),
billboard : {
image : pinBuilder.fromColor(Cesium.Color.ROYALBLUE, 48).toDataURL(),
verticalOrigin : Cesium.VerticalOrigin.BOTTOM
}
});
I want to update the “position” of the pin. I have an entity with an existing position of Cesium.
How do I do something like:
pin.setHeight(10000)?
Or how do I do something like:
pin.position = Cesium.Cartesian3.fromDegrees(pin.position.getLongitude(), pin.position.getLatitude(), 10000)?