Skip to content
This repository has been archived by the owner on Nov 4, 2020. It is now read-only.

Commit

Permalink
Merge pull request CesiumGS#4395 from AnalyticalGraphicsInc/custom-da…
Browse files Browse the repository at this point in the history
…tasource-example

Fix custom data source Sandcastle example.
  • Loading branch information
lilleyse authored Oct 3, 2016
2 parents 61e1019 + 50807f8 commit 26f2273
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Apps/Sandcastle/gallery/Custom DataSource.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
this._seriesNames = [];
this._seriesToDisplay = undefined;
this._heightScale = 10000000;
this._entityCluster = new Cesium.EntityCluster();
}

Object.defineProperties(WebGLGlobeDataSource.prototype, {
Expand Down Expand Up @@ -196,6 +197,22 @@
set : function(value) {
this._entityCollection = value;
}
},
/**
* Gets or sets the clustering options for this data source. This object can be shared between multiple data sources.
* @memberof WebGLGlobeDataSource.prototype
* @type {EntityCluster}
*/
clustering : {
get : function() {
return this._entityCluster;
},
set : function(value) {
if (!Cesium.defined(value)) {
throw new Cesium.DeveloperError('value must be defined.');
}
this._entityCluster = value;
}
}
});

Expand Down

0 comments on commit 26f2273

Please sign in to comment.