showView状态保存
This commit is contained in:
@ -120,7 +120,8 @@ class Base extends Tools {
|
||||
|
||||
set show(v) {
|
||||
if (typeof v === "boolean") {
|
||||
if (!this.isShowView) {
|
||||
let sdkD = get2DSdk().sdkD
|
||||
if (!this.isShowView || !sdkD) {
|
||||
this.options.show = v
|
||||
if (this.originalOptions) {
|
||||
this.originalOptions.show = v
|
||||
@ -132,7 +133,7 @@ class Base extends Tools {
|
||||
this.entity._objectState = this.options.show
|
||||
}
|
||||
}
|
||||
if (!this.showView || this.showView == 3) {
|
||||
if (!this.showView || this.showView == 3 || !sdkD) {
|
||||
this.entity && (this.entity.show = this.options.show)
|
||||
if (this.options.label && this.options.label.show && this.label) {
|
||||
this.label.show = this.options.show
|
||||
@ -154,7 +155,6 @@ class Base extends Tools {
|
||||
syncSplitData(this.sdk, this.options.id)
|
||||
this.isShowView = false
|
||||
|
||||
let { sdkP, sdkD } = get2DSdk()
|
||||
if (this.type == 'layer' && sdkD) {
|
||||
let layer2d = sdkD.viewer.imageryLayers._layers[this.layerIndex]
|
||||
let layer3d = this.entity
|
||||
|
Reference in New Issue
Block a user