Reacting to view and zoom level changes

Hi, I was wondering what are good practices for listening to changes in the scene, like current zoom level and viewbox, so I can use these to query data and LOD.

For now I am using:

scene.preRender.addEventListener - terrainHeight, viewRect)

Hi there,

Using scene.preRender is a good solution. You could also try the Camera.changed event.

Let us know if you’re working on anything interesting and would like to share it with the community!

1 Like