From 5d2106137232b0559a14a28165094f0e1b28d14f Mon Sep 17 00:00:00 2001 From: TreeWish <1131093754@qq.com> Date: 星期一, 20 二月 2023 18:11:14 +0800 Subject: [PATCH] Merge branch 'master' of http://103.85.165.99:8989/r/LFWEB_NEW --- src/components/MapView/mapMenuPop.vue | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/components/MapView/mapMenuPop.vue b/src/components/MapView/mapMenuPop.vue index dde75e2..a862f2a 100644 --- a/src/components/MapView/mapMenuPop.vue +++ b/src/components/MapView/mapMenuPop.vue @@ -359,7 +359,7 @@ this.ruleForm.wkt = decr(this.listdata.wkt) this.ruleForm.tabs = this.option; this.dialogInsertVisible = true; - } + }download }, async signGetPublicKey() { @@ -474,6 +474,7 @@ } this.$store.state.queryInfo = []; if (this.$store.state.primitLayer != null) { + sgworld.Viewer.entities.remove(this.$store.state.primitLayer); sgworld.Creator.DeleteObject(this.$store.state.primitLayer); this.$store.state.primitLayer = null; } @@ -669,19 +670,20 @@ } }, primitivesAddLayer(res) { - debugger + switch (res.type) { case "Point": var val = Cesium.Cartesian3.fromDegrees( res.coordinates[0], res.coordinates[1], - 200 + ); var point = Viewer.entities.add({ position: val, billboard: { // 鍥惧儚鍦板潃锛孶RI鎴朇anvas鐨勫睘鎬� image: SmartEarthRootUrl + "Workers/image/mark.png", + heightReference: Cesium.HeightReference.CLAMP_TO_GROUND, // 澶у皬鏄惁浠ョ背涓哄崟浣� sizeInMeters: false, // 鐩稿浜庡潗鏍囩殑鍨傜洿浣嶇疆 @@ -694,6 +696,7 @@ show: true } }); + point.billboard.disableDepthTestDistance = Number.POSITIVE_INFINITY; this.$store.state.queryInfo.push(point) break; case "LineString": -- Gitblit v1.9.3