Closed OmarShehata closed 5 years ago
@OmarShehata can you find out more information about the use case for this? I would suggest using styling to hide features. I'm not sure hiding a tile is helpful in most cases because it's not meaningful as far as the data is concerned. Any number of features can be in a tile, and the tile children may be drastically different from the tile depending on the type of refinement used.
While there's no way to hide a tile with the styling language, I believe the Cesium API itself allows this if that's what they really need. I'm with @hpinkos though, this use case sounds weird and not something we would support through styling. (but we'll see what the user says).
How would you hide a tile with the CesiumJS API right now?
I may be mistaken. I thought you could listen to the tileLoad
event on Cesium3DTileset
and then set visible to false on Cesium3DTile
, but that doesn't look public. You might actually be able to cheat and do the same thing but set Cesium3DTiles.color
to Color.TRANSPARENT
@OmarShehata We need to understand why they want to hide a tile instead of hiding features using styling. I think there's a better way to accomplish whatever they're trying to do.
I agree with you @hpinkos .
@OmarShehata any updates here, should we just close this since we all agree there's no good use case for this in the styling language?
The user never responded to my request for details in the forum thread, so I'm fine with closing.
Congratulations on closing the issue! I found these Cesium forum links in the comments above:
https://groups.google.com/d/msg/cesium-dev/FwURIcrErv4/nQkCiM_XCAAJ
If this issue affects any of these threads, please post a comment like the following:
The issue at https://github.com/AnalyticalGraphicsInc/cesium/issues/7426 has just been closed and may resolve your issue. Look for the change in the next stable release of Cesium or get it now in the master branch on GitHub https://github.com/AnalyticalGraphicsInc/cesium.
I am a bot who helps you make Cesium awesome! Contributions to my configuration are welcome.
:earth_africa: :earth_americas: :earth_asia:
@cesium-concierge I don't think it's a good idea to change the transparent, the 3d tile model is still there and influences the interaction and browser speed
Can you describe what your use case is @limzen ? Have you tried using the styling language to hide features in your 3D Tileset?
This feature would add a
show
property onCesium3DTile
so you can show/hide individual tiles. The use case is here on the forum:https://groups.google.com/d/msg/cesium-dev/FwURIcrErv4/nQkCiM_XCAAJ
There doesn't seem to be a way to hide an individual tile with the styling language. I suggested a workaround of just splitting it into multiple 3D tilesets (each could be selectively hidden) but that doesn't work if you're trying to clip your data as one tileset with a clipping plane (since tilesets can't share clipping planes).