question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Billboards in custom data source are not initially clustered

See original GitHub issue

Custom data source with set of billboards and with enabled clustering is not clustered initially.

Take a look at the following example in Sandcastle:

var viewer = new Cesium.Viewer('cesiumContainer');

var image = new Image();
image.onload = function() {
    var dataSource = new Cesium.CustomDataSource('points');

    for (var i = 0; i !== 5000; i++) {
      dataSource.entities.add({
          position: Cesium.Cartesian3.fromDegrees(Math.random() * 360 - 180, Math.random() * 180 - 90, 0),
          billboard: {
            image: image
          }
        }
      );
    }

    dataSource.clustering.pixelRange = 20;
    dataSource.clustering.minimumClusterSize = 3;
    dataSource.clustering.enabled = true;

    viewer.dataSources.add(dataSource);
};
image.src = '../images/facility.gif';

Here is how it looks like after running:

2016-10-27_17 57 08_1

This stays for indefinite time, and only if I navigate (zoom or rotate) Earth for a few seconds billboards are being clustered:

2016-10-27_17 59 06_1

Datasource with only labels is being clustered initially normally.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
rutskycommented, Apr 18, 2017
0reactions
pjcozzicommented, Apr 18, 2017

Thanks again for the report and code example, @rutsky.

This was fixed in #5208.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot Data Blending - Tableau Help
The secondary data source may not have any links to the primary data source. Look in the Data pane for the link icon....
Read more >
What the value (not set) means - Analytics Help
(not set) is a placeholder name that Analytics uses when it hasn't received any information for the dimension you have selected. The reasons...
Read more >
Using connectors and connections with AWS Glue Studio
If the data source does not use the term table, then supply the name of an appropriate data structure, as indicated by the...
Read more >
Custom Audience - Meta for Developers - Facebook
It indicates whether or not an audience can be used in ads. Possible values include: ... Type of custom audience, derived from original...
Read more >
Change the data series in a chart - Microsoft Support
Use chart filters to show and hide data series or categories, and use the Select Data Source dialog box to further change and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found