From acb45c731c3ccd0a67061efb4e7bdf4f56005672 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Wed, 12 Jan 2022 08:52:13 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.105:10010/r/school-web

---
 src/store/modules/mobile.js |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/store/modules/mobile.js b/src/store/modules/mobile.js
index ed61810..ed8c228 100644
--- a/src/store/modules/mobile.js
+++ b/src/store/modules/mobile.js
@@ -720,18 +720,24 @@
     MSET_DRAWALINELAYER({ state, commit, dispatch }, Str) {
       //检查是否存在路线
       commit("removePolyline");
+      let color =
+        global.DC.Namespace.Cesium.Color.fromCssColorString("#409EFF");
+      let material = new global.DC.PolylineTrailMaterialProperty({
+        color: color,
+        speed: 10,
+      });
       let drawALineLayer = new global.DC.VectorLayer("layer");
       state.mviewer.addLayer(drawALineLayer);
       let polyline = new global.DC.Polyline(Str); //加入绘画点
       polyline.setStyle({
         width: 3,
-        material: DC.Color.RED,
+        material: material,
         clampToGround: true,
       });
       drawALineLayer.addOverlay(polyline);
       state.drawALineLayer = drawALineLayer;
       state.isOpenDrawALine = true;
-      commit("cameraSetView", state.navigationStartLngLat); //移动
+      // commit("cameraSetView", state.navigationStartLngLat); //移动
     },
   },
 };

--
Gitblit v1.9.3