-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DistanceDisplayConditions for polygons is unreliable and inconsistent #12478
Comments
To level set, the distance for
That would be my expectation as well. Though there's a lot of moving pieces in the provided example with regards to the property system. @fawick Could you provide a bit more info abut the use case? Is there a minimum example you could provide that demonstrates the issue? |
Ah, well, I had hoped that this Sandcastle would serve as such a minimum example. In my usecase, I typically have an area which is roughly a few kilometers in width and height (an airport). In such an area, there is a To reduce clutter in the viewer as well as to reduce GPU load I would like to prevent showing these polygons until the user has zoomed in a lot. However, with a |
Ah, thank you for the explanation @fawick! I think clustering as a concept is how we would handle decluttering. However, being honest, our implementation of this is not as fully featured as it could be. If I were to implement your use case with the given API, I would probably add a callback property for each polygon's I'm a bit concerned that the I'm going to preemptively close this issue since it seems not to be a bug itself. But let me know if you think otherwise, and we can reopen this. |
Thank you for the suggestions @ggetz! Unfortunately, clustering is a bit undesired for this use case as this would also cluster the entity point graphics (smaller green dots) which shall be kept separat even for "high-altitude views". I am going to look into having a dynamic callback property for |
Yes, |
What happened?
For small values of the far value, the
DistanceDisplayConditions
is not applied reliably. Also it is inconsistent between various geometries.For example, in the Sandcastle link I provide, there are four entities:
Upon zooming in, both polygons are shown before the point and the line. The difference in their far distance of factor 10x is does not seem to be taken into account.
My expectation is that polygonGraphics1, pointEntity and lineEntity start to be shown at the same distance and that polygonGraphics2 would require a lot more zooming in than the rest.
Reproduction steps
Sandcastle example
https://sandcastle.cesium.com/#c=rVfbbuM2EP0VIn2IjFUVXiXK8QbdeoO06GIbNEH7EPtBK9E2sbJkUFRSt8i/l9TFlmVlvSkiAzZIzpkZnjkcynGeFRo8SvEkFHgPMvEEpqKQ5dr7s5pzZmdxNZ7mmY5kJtTsbHQ5y2ZZXCGTSEd3ealicYieloXO1x93q875Jk+3S4M5t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Jrje50qBUqeN5F1qsDenG/cWXMv4qtBcXRf1qAcDkogudJPIRyOT9wD8Je2sWhVlZlGl1Z8/OriYXxv4ImuaROT7L3x+FMqW2Zit09ame9DxvcmGGw0id50acquf5Pw
Environment
Browser: Chrome, Firefox
CesiumJS Version: 1.126
Operating System: Windows 10
The text was updated successfully, but these errors were encountered: