From d75e47f5a8d2df158a3dd33b7b598a97854ea1df Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 09 Dec 2024 19:59:27 +0800
Subject: [PATCH] 扫码报警页面模型遮挡图标处理 默认显示影像+轻量处理 阵地管理页面模型遮挡图标处理 从业人员页面模型遮挡图标处理 群众上报页面模型遮挡图标处理 九小场所页面模型遮挡图标处理
---
src/utils/plot/Plot.js | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/utils/plot/Plot.js b/src/utils/plot/Plot.js
index 2cc43d1..fb0aa95 100644
--- a/src/utils/plot/Plot.js
+++ b/src/utils/plot/Plot.js
@@ -11,6 +11,7 @@
import EditBillboard from './edit/EditBillboard'
class Plot {
constructor(viewer, options = {}) {
+ this._currentWorker = undefined
this._viewer = viewer
this._options = options
this._layer = new global.DC.Namespace.Cesium.CustomDataSource('cur-plot-layer')
@@ -51,6 +52,9 @@
default:
break
}
+
+ this._currentWorker = drawWorker
+
return drawWorker
}
@@ -74,6 +78,9 @@
default:
break
}
+
+ this._currentWorker = editWorker
+
return editWorker
}
@@ -115,6 +122,14 @@
return this
}
+ stop (overlay) {
+ if (this._state == 'draw') {
+ this._currentWorker?._onDrawStop()
+ } else {
+ this._currentWorker?._onEditStop(overlay)
+ }
+ }
+
/**
*
* @returns {Plot}
--
Gitblit v1.9.3