I'm trying with 3d tiles,because my project project has grown in data and I have a doubt.
How can I go through each building (all, not only visible) with the example of ny? On the other hand, how can I zoom in the bounding box of several show=true entities, just as can be done with kml?
This features are posible using viewer.datasource but using 3d tiles i dont have idea
Thanks for your help and cesium ion is a killer server
For zooming in to particular features, the Cesium ion 3D Tiling pipeline will save metadata per feature. For the NYC each building has a longitude/latitude properties saved on it, so you can use that to zoom in. Check out this Sandcastle:
Select the “Zoom to metadata” radio button, then right click on any building. Let me know if this does what you need. And thanks for your kind words! Glad you’ve been enjoying using Cesium ion. We’re constantly improving it so if you have feedback or ideas for features let me know here or feel free to post on the ion community repo (https://cesiumjs.org/Cesium/Build/Apps/Sandcastle/?src=3D%20Tiles%20Interactivity.html).
I think you would have to do something similar to what you would do with KML. After you apply the style to your tileset, you’d have to iterate through all the tiles and their features, collect the ones that are not hidden (perhaps by checking their .show property) and then you can potentially average their long/lat positions to figure out where to zoom to.
Is that similar to what you’d done before with KML? Perhaps one thing that CesiumJS can do to make it easier is to allow the camera to zoom in to any given set of entities/models. If you do end up implementing this it’d be awesome to post it here (or even better, contribute the code back to Cesium!)
this is the question,how Can i
iterate through all the tiles and their features, collect the ones that are not hidden (perhaps by checking their .show property ?? this is the question
When I have that, it is easy to implement the zoon if we have latitude, longitude, area and height for each building.
regards
Francisco raga ** | **Desarrollador GIS de código abierto de pila completa
Note that you’ll only be able to get the content for tiles that are already loaded, so ones that already on screen. So perhaps a good way to do this is to zoom the camera to the whole tileset, apply the style, then do this iteration/collection.