How can I limit the generation range of Buildings in Cesium OSM Buildings

May I ask how can I limit the generation range of Buildings in Cesium OSM Buildings? Can this be controlled by code?
Thanks

Hi @L2GF,

I just want to check what you mean by the “generation range”? It sounds like you want to stop buildings from appearing if they’re a certain distance away from the camera. Is that correct?

If so, you might be interested in using the CesiumTileExcluder interface. This allows you to implement custom tile exclusion behavior, so you can prevent tiles from loading in a certain way.

Unfortunately we do not have an official tutorial for using this yet, but you can find some example code on Github and adapt it for your needs:

I hope that helps! Let us know how it goes :smile:

1 Like