1. A concise explanation of the problem you’re experiencing.
When i’m moving a billboard using billboard.position, it disappears from the screen but is still being moved
2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.
function update(value) {
billboard.position = new Cesium.Cartesian3(value.x, value.y, 10);
viewer.camera.setView({
destination: Cesium.Cartesian3.fromDegrees(value.x, value.y, 250000.0)
})
}
``
3. Context. Why do you need to do this? We might know a better way to accomplish your goal.
We’re trying to move a billboard looking like a certain object using an image to show it moving across the map.
4. The Cesium version you’re using, your operating system and browser.
Cesium v1.53.0 - Windows 10 64 Bit - Chrome
omar
January 28, 2019, 12:32pm
2
How often does the update function there run? Does it disappear forever or is it a sort of flickering?
I’m not sure exactly what the issue is, but I do know that Cesium assumes most properties to be static for performance reasons. You can use a callback property if your entity is dynamic like in this example:
This can be used for position but also for any other property. Let me know if that works.
The update is ran every second as it is running a tween between two small points to get it to go across a strange path
When we have a problem, this is the code that is causing it:
function run(i) {
// animate
var tween = tween || scene.tweens.add({
update: update,
startObject: {
x: list[i],
y: list[i + 1]
},
stopObject: {
x: list[i + 3],
y: list[i + 4]
},
duration: 1.0,
easingFunction: Cesium.EasingFunction.LINEAR_NONE
});
tween = undefined;
current += 3;
if(current >= list.length) {
clearInterval(interval);
}
}
``
omar
January 31, 2019, 1:13pm
4
I would try changing the position to use a CallbackProperty as shown in that example I linked, and see if that fixes the issue.