Skip to content

Commit

Permalink
add scene split
Browse files Browse the repository at this point in the history
  • Loading branch information
cavencj committed May 8, 2022
1 parent cdd9097 commit 11a5a09
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions modules/widget/type/SceneSplit.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,17 +122,16 @@ class SceneSplit extends Widget {
/**
*
* @param baseLayer
* @param splitDirection
* @returns {SceneSplit}
*/
addBaseLayer(baseLayer, splitDirection = 1) {
addBaseLayer(baseLayer) {
if (!this._viewer || !this._enable) {
return this
}
if (baseLayer) {
this._baseLayer && this._viewer.imageryLayers.remove(this._baseLayer)
this._baseLayer = this._viewer.imageryLayers.addImageryProvider(baseLayer)
this._baseLayer.splitDirection = splitDirection || 0
this._baseLayer.splitDirection = 1
}
return this
}
Expand Down

0 comments on commit 11a5a09

Please sign in to comment.