From 05e12ffc0cd7ca5cc0469cc7b69f9a524d722d1c Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Thu, 13 Jan 2022 17:46:52 +0800
Subject: [PATCH] 忽略模型文件
---
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