requestRender force Update

Hi,

i have the following scenario:

  1. Camera move
  2. addEventlistener on moveEnd
    change entities
    removeAll (25)
    add (16 and 9)
    requestRender - only the first 16 are displayed

→ nothing happened or only parts are rendered

image

The console.logs are from the relevant parts in code esp. the entityCollectionchanged-Callback

The requestRender ist done after the console.log(“draw1K ready Draw”);

Could this be problems with asynchronous behaviour of …?
Is there a way to recognize if the add is ready ?

Rüdiger

Hi @Ruediger_Brand,

Thank you for providing some details on your implementation. I would like to learn a little bit more about your high-level goals and your use case. This information would help me work with you to find a robust solution.

Are you sure that you are using the correct ScreenSpaceEventType? Would MOUSE_MOVE be more appropriate here?

https://cesium.com/learn/cesiumjs/ref-doc/global.html?classFilter=event#ScreenSpaceEventType

I am looking forward to learning more. Please do not hesitate to reach out with any other questions or concerns.

-Sam

@sam.rothstein

Hi Sam,

I have a 1k (kilometer) Grid to display.

The grid should update when the situation/scene/display (I don’t know the right word for this case) changes.

So in the moment I use the camera change/movement Events to update. Maybe I should use other events?

Rüdiger

Hi @Ruediger_Brand,

I would recommend experimenting with other ScreenSpaceEventType objects. For your use case, it seems like MOUSE_MOVE would be appropriate.

-Sam