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 | 18 +++++-------------
1 files changed, 5 insertions(+), 13 deletions(-)
diff --git a/src/store/modules/mobile.js b/src/store/modules/mobile.js
index cfb83ed..ed8c228 100644
--- a/src/store/modules/mobile.js
+++ b/src/store/modules/mobile.js
@@ -720,26 +720,18 @@
MSET_DRAWALINELAYER({ state, commit, dispatch }, Str) {
//检查是否存在路线
commit("removePolyline");
- // let color = global.DC.Color.RED;
- // let color = global.DC.Namespace.Cesium.Color.DEEPSKYBLUE;
let color =
global.DC.Namespace.Cesium.Color.fromCssColorString("#409EFF");
- // let color = {
- // alpha: 1,
- // blue: 0,
- // green: 0,
- // red: 1,
- // };
- // color.blue = 0.25;
- // color.green = 0.61;
- // color.red = 1;
- // console.log(color);
+ 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: color,
+ material: material,
clampToGround: true,
});
drawALineLayer.addOverlay(polyline);
--
Gitblit v1.9.3