From fbc7af9fc508e7b03d63c1671a20335a3c5457e1 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 18 Mar 2022 14:44:27 +0800
Subject: [PATCH] 路线样式更换

---
 src/components/campusNav/index.vue |   24 ++++++++++++++++--------
 src/pcviews/specialmap/welcome.vue |    2 +-
 2 files changed, 17 insertions(+), 9 deletions(-)

diff --git a/src/components/campusNav/index.vue b/src/components/campusNav/index.vue
index d53c866..3d17339 100644
--- a/src/components/campusNav/index.vue
+++ b/src/components/campusNav/index.vue
@@ -427,13 +427,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 +515,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 == '真三维') {
diff --git a/src/pcviews/specialmap/welcome.vue b/src/pcviews/specialmap/welcome.vue
index f1cb15d..cb79c76 100644
--- a/src/pcviews/specialmap/welcome.vue
+++ b/src/pcviews/specialmap/welcome.vue
@@ -200,7 +200,7 @@
                 width: 6,
                 arcType: true,
                 material: new global.DC.PolylineImageTrailMaterialProperty({
-                    color: new global.DC.Color(255, 0, 0),
+                    color: global.DC.Namespace.Cesium.Color.fromBytes(10, 255, 10),
                     speed: 60,
                     image: '/img/icon/right.png',
                     repeat: { x: 320, y: 1 }

--
Gitblit v1.9.3