From e24f70ababdee2b4fdce71c6b80a9bc928fa0331 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 08 May 2023 14:45:08 +0800
Subject: [PATCH] 警情排行调整
---
src/utils/tools/EditTool.js | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/utils/tools/EditTool.js b/src/utils/tools/EditTool.js
index becd8b3..63d3371 100644
--- a/src/utils/tools/EditTool.js
+++ b/src/utils/tools/EditTool.js
@@ -22,7 +22,7 @@
class EditTool {
constructor() {
this._viewer = undefined
- this._anchorLayer = new global.DC.Namespace.Cesium.CustomDataSource('edit-anchor-layer')
+ this._anchorLayer = new global.DC.Namespace.Cesium.CustomDataSource('tool-three-edit-anchor-layer')
this._options = {}
this._plotEvent = new PlotEvent()
this._tooltipMess = undefined
@@ -139,7 +139,7 @@
image: image,
width: 12,
height: 12,
- eyeOffset: new global.DC.Namespace.Cesium.Cartesian3(0, 0, -100),
+ eyeOffset: new global.DC.Namespace.Cesium.Cartesian3(0, 0, -0),
heightReference:
this._viewer.scene.mode === global.DC.Namespace.Cesium.SceneMode.SCENE3D &&
!this._options.clampToModel
@@ -245,6 +245,8 @@
* @returns {EditTool}
*/
activate (options = {}) {
+ this._anchorLayer.entities.removeAll()
+
this._viewer.tooltip.enable = true
this._options = { ...DEF_OPTS, ...options }
this._unbindEvent()
--
Gitblit v1.9.3