From 81b4bca516d37a36854181d60215e6ceaddc5e9c Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 30 Mar 2023 15:45:15 +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