I’m trying to make clustering for polygons work by chaining a distanceDisplayCondition to a billboard and setting clustering to true on the datasource. Here is the code used to construct the entities:
I’m able without to much trouble, using this sandcastle, to get this display, which I would expect should be impossible. This issue can also be seen at this other sandcastle.
In the triangle over the ocean sandcastle, I’m trying to get the distance display condition wired in such that you never see the clustering numbers and the polygons at the same time.
I’m a little confused over two points:
Why are the billboards clustering at all when the polygons are visible?
Why is the clustering display “2” here, without displaying third billboard?
Do you have any news about polygon clustering with Cesium ? I'm working on an voronoi diagram map on Cesium. And I'd like to cluster some voronoi polygons.
We don’t yet have functionality for clustering beyond points, labels and billboards. However, if you really need the clustering, you can probably create your own by creating a set of points at the centers of your polygons, enable clustering and use information from the clusters to set visibility of your polygons.
mmmm… yes clustering or replacing of billboards should be a nice option to add and use during displaying of billboards.
check the image I attached. I do have 29 billboards in my system for the town of Patras, Greece. As you see, it’s a bit cluttered to show the billboards on the globe.
So what to do?:
#1. What I’m thinking about is to ‘move’ the billboards so that they do not overlap anymore from visual point of the camera. This is a complicated because when the camera is moving the location in X,Y,Z of all the billboards needs to recalculated comparing to the camera view point.
#2. Option is to use the ‘scalebydistance’ and / or the ‘translucencyByDistance’ of the billboards more ‘tight’ so, only the close by will be visible
#3. What I did now in my situation is to make a variable height of the billboards + labels, and put them on the globe. But this is only for my POC to see if this is usefull.
What to do?
I will combine #3 and #2 together and see how this will look like. Option #1. is very nice, but complicated.