From e8efe7370ab9f2b9dfb07b0ae70b0e06d98e37c8 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 01 Apr 2023 17:18:35 +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