diff --git a/Apps/Sandcastle/gallery/Custom DataSource.html b/Apps/Sandcastle/gallery/Custom DataSource.html index ec30ffded215..d705d4016939 100644 --- a/Apps/Sandcastle/gallery/Custom DataSource.html +++ b/Apps/Sandcastle/gallery/Custom DataSource.html @@ -53,6 +53,7 @@ this._seriesNames = []; this._seriesToDisplay = undefined; this._heightScale = 10000000; + this._entityCluster = new Cesium.EntityCluster(); } Object.defineProperties(WebGLGlobeDataSource.prototype, { @@ -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; + } } });