From 81f54040c2cb65537c6c6e1db8358a39a57dea0d Mon Sep 17 00:00:00 2001
From: mayisheng <admin>
Date: Mon, 15 Aug 2022 16:14:01 +0800
Subject: [PATCH] 1

---
 src/components/campusNav/index.vue |   30 ++++++++++++++++++++++--------
 1 files changed, 22 insertions(+), 8 deletions(-)

diff --git a/src/components/campusNav/index.vue b/src/components/campusNav/index.vue
index d53c866..c6e43a2 100644
--- a/src/components/campusNav/index.vue
+++ b/src/components/campusNav/index.vue
@@ -283,6 +283,7 @@
                 tooltip.showAt(e.windowPosition, title)
             })
         },
+
         closeModel () {
             if (this.$route.path.indexOf('/campusnavi') != -1) {
                 this.$store.dispatch('delVisitedViews', this.$route)
@@ -295,6 +296,9 @@
             this.comeNameText = ''
             this.comeNameList = []
             this.comeNameShow = false
+            this.pathBoxList = []
+            this.pathBoxShow = false
+
             if (CamPusNavLayer.campusRouteLayer != null) {
                 CamPusNavLayer.campusRouteLayer.clear()
                 this.isOverRouter = false
@@ -427,13 +431,17 @@
 
                         const polyline = new global.DC.Polyline(routes)
                         polyline.setStyle({
-                            width: 3,
-                            material: new global.DC.PolylineTrailMaterialProperty({
-                                color: global.DC.Color.GREEN,
-                                speed: 10
+                            width: 6,
+                            arcType: true,
+                            material: new global.DC.PolylineImageTrailMaterialProperty({
+                                color: global.DC.Namespace.Cesium.Color.fromBytes(10, 255, 10),
+                                speed: 60,
+                                image: '/img/icon/right.png',
+                                repeat: { x: 320, y: 1 }
                             }),
                             clampToGround: true
                         })
+
                         CamPusNavLayer.campusRouteLayer.addOverlay(polyline)
                         if (this.twoOrThree == '真三维') {
                             global.viewer.flyTo(CamPusNavLayer.campusRouteLayer)
@@ -511,13 +519,17 @@
 
                         const polyline = new global.DC.Polyline(routes)
                         polyline.setStyle({
-                            width: 3,
-                            material: new global.DC.PolylineTrailMaterialProperty({
-                                color: global.DC.Color.GREEN,
-                                speed: 10
+                            width: 6,
+                            arcType: true,
+                            material: new global.DC.PolylineImageTrailMaterialProperty({
+                                color: global.DC.Namespace.Cesium.Color.fromBytes(10, 255, 10),
+                                speed: 60,
+                                image: '/img/icon/right.png',
+                                repeat: { x: 320, y: 1 }
                             }),
                             clampToGround: true
                         })
+
                         CamPusNavLayer.campusRouteLayer.addOverlay(polyline)
 
                         if (this.twoOrThree == '真三维') {
@@ -564,6 +576,8 @@
         clearLayer () {
             if (CamPusNavLayer.campusRouteLayer != null) {
                 CamPusNavLayer.campusRouteLayer.clear()
+                this.pathBoxList = []
+                this.pathBoxShow = false
             }
         },
 

--
Gitblit v1.9.3