From e0e380abc6a7d3b651e5a4da29cc647f90c23304 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Tue, 15 Jun 2021 14:56:28 +0800
Subject: [PATCH] 图上量算相关调整

---
 widgets/Tool/Widget.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/widgets/Tool/Widget.js b/widgets/Tool/Widget.js
index 6d79f73..7c22602 100644
--- a/widgets/Tool/Widget.js
+++ b/widgets/Tool/Widget.js
@@ -28,6 +28,7 @@
 			name: 'Tool',
 			layers: {},
 			startup: function () {
+				var that = this;
 				// 暴露在外的接口
 				topic.subscribe("closeTool", lang.hitch(this, this.closeToolBox));
 				this.inherited(arguments);
@@ -39,7 +40,7 @@
 
 				// 图上量算
 				$('.measure-tool').click(function () {
-
+					that.map.scene.globe.depthTestAgainstTerrain = false;
 					// 关闭卷帘
 					topic.publish('closeRolling', 'Rolling');
 					// 关闭分屏

--
Gitblit v1.9.3