From f13afcb61276061871b30bce17a7877287df0b67 Mon Sep 17 00:00:00 2001
From: guanqb <18720758508@163.com>
Date: Sat, 20 Jan 2024 09:56:43 +0800
Subject: [PATCH] 1
---
src/utils/tools/DrawTool.js | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/utils/tools/DrawTool.js b/src/utils/tools/DrawTool.js
index 153e37f..b06febd 100644
--- a/src/utils/tools/DrawTool.js
+++ b/src/utils/tools/DrawTool.js
@@ -19,7 +19,7 @@
class DrawTool {
constructor() {
this._viewer = undefined
- this._anchorLayer = new global.DC.Namespace.Cesium.CustomDataSource('draw-anchor-layer')
+ this._anchorLayer = new global.DC.Namespace.Cesium.CustomDataSource('tool-three-draw-anchor-layer')
this._floatingAnchor = undefined
this._options = {}
this._plotEvent = new PlotEvent()
@@ -91,10 +91,11 @@
return this._anchorLayer.entities.add({
position: position,
billboard: {
+ show: true,
image: isCenter ? this._options.icon_center : this._options.icon_anchor,
width: this._options.icon_size[0],
height: this._options.icon_size[1],
- // 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
--
Gitblit v1.9.3