|
501 | 501 | } else if (this._urlSuffix == 'kml' || this._urlSuffix == 'kmz') {
|
502 | 502 | this._citydbKmlDataSource = new Cesium.KmlDataSource({
|
503 | 503 | camera: cesiumViewer.scene.camera,
|
504 |
| - canvas: cesiumViewer.scene.canvas, |
505 |
| - clampToGround: this._layerClampToGround |
| 504 | + canvas: cesiumViewer.scene.canvas |
506 | 505 | });
|
507 | 506 |
|
508 |
| - this._citydbKmlDataSource.load(checkProxyUrl(this, this._url)).then(function (dataSource) { |
| 507 | + this._citydbKmlDataSource.load(checkProxyUrl(this, this._url), {clampToGround: this._layerClampToGround}).then(function (dataSource) { |
509 | 508 | assignLayerIdToDataSourceEntites(dataSource.entities, that._id);
|
510 | 509 | if (that._active) {
|
511 | 510 | cesiumViewer.dataSources.add(dataSource);
|
|
896 | 895 | } else if (this._urlSuffix == 'kml' || this._urlSuffix == 'kmz') {
|
897 | 896 | this._citydbKmlDataSource = new Cesium.KmlDataSource({
|
898 | 897 | camera: this._cesiumViewer.scene.camera,
|
899 |
| - canvas: this._cesiumViewer.scene.canvas, |
900 |
| - clampToGround: this._layerClampToGround |
| 898 | + canvas: this._cesiumViewer.scene.canvas |
901 | 899 | });
|
902 | 900 |
|
903 |
| - this._citydbKmlDataSource.load(checkProxyUrl(this, this._url)).then(function (dataSource) { |
| 901 | + this._citydbKmlDataSource.load(checkProxyUrl(this, this._url), {clampToGround: this._layerClampToGround}).then(function (dataSource) { |
904 | 902 | assignLayerIdToDataSourceEntites(dataSource.entities, that._id);
|
905 | 903 | that._cesiumViewer.dataSources.add(dataSource);
|
906 | 904 | deferred.resolve(that);
|
|
0 commit comments