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.

clustering CustomDataSource: length undefined

See original GitHub issue

Hi,

I’m trying to enable clustering in the <CustomDataSource/> component. however i’m getting the following error screen shot 2018-07-30 at 10 23 17

quick example of my render method:

       
      <Viewer
        full
        baseLayerPicker={false}
        infoBox={false}
        homeButton={false}
        animation={false}
        timeline={false}
        scene3DOnly={true}
        shadows={true}
        fullscreenButton={false}
        onSelectedEntityChanged={e => this.flyTo(e)}
        selectionIndicator={false}
        imageryProvider={this.renderImageryProvider()}
        ref={e => {
          this.viewer = e ? e.cesiumElement : null;
        }}
      >
        <ScreenSpaceCameraController
          maximumZoomDistance={20000}
          minimumZoomDistance={50000000}
        />
        <CustomDataSource
          name="customDataSourceThing"
          clustering={{
            enabled: true,
            pixelRange: 15,
            minimumClusterSize: 3,
            clusterBillboards: true,
            clusterLabels: false,
            clusterPoints: false
          }}
          show={true}
        >
          <Entity
            name="customDataSourceThing"
            description="test"
            position={Cartesian3.fromDegrees(-74.0707383, 41.7117244, 100)}
            point={{ pixelSize: 10 }}
          />
        </CustomDataSource>
      </Viewer>

Let me know if you need more details regarding the example?

Regards, Jarno

Issue Analytics

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

github_iconTop GitHub Comments

0reactions
riccardolardicommented, Oct 1, 2020

Is there a new EntityCluster example? e.g. has this been resolved?

Read more comments on GitHub >

github_iconTop Results From Across the Web

clustering CustomDataSource: length undefined #9 - GitHub
Hi, I'm trying to enable clustering in the component. however i'm getting the following error quick example of my render method:
Read more >
How to solve the clustering bug in Cesium? - Stack Overflow
I produced it by creating lots of entities with label. Howeveer, when I set the clustering enabled, some labels were invisible in 2D....
Read more >
CustomDataSource - Cesium Documentation
Gets or sets the clustering options for this data source. This object can be shared between multiple data sources. entities : EntityCollection ·...
Read more >
GeoJsonDataSource - Cesium Documentation
This DataSource only defines static data, therefore this property is always undefined. clustering : EntityCluster. Gets or sets the clustering options for this ......
Read more >
Changelog - Cacti
Increased bulk insert size to avoid partial inserts and potential data loss. issue, 4810, Call to undefined function boost_debug in Cacti log. issue,...
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