From 932e705d7c2c55f75865e511f7e0fa9a2817d273 Mon Sep 17 00:00:00 2001
From: liuyg <376836862@qq.com>
Date: Mon, 17 Jan 2022 13:53:11 +0800
Subject: [PATCH] +
---
src/store/modules/mobile.js | 36 +++++++++++++++++++++---------------
1 files changed, 21 insertions(+), 15 deletions(-)
diff --git a/src/store/modules/mobile.js b/src/store/modules/mobile.js
index 0a816df..979e095 100644
--- a/src/store/modules/mobile.js
+++ b/src/store/modules/mobile.js
@@ -799,6 +799,12 @@
color: red,
speed: 10,
});
+ let material1 = new global.DC.PolylineImageTrailMaterialProperty({
+ color: global.DC.Color(255, 0, 0),
+ speed: 60,
+ image: "img/icon/right.png",
+ repeat: { x: 320, y: 1 },
+ });
let drawALineLayerMany = new global.DC.VectorLayer("layer");
state.mviewer.addLayer(drawALineLayerMany);
//多条线
@@ -806,23 +812,23 @@
let polyline = new global.DC.Polyline(Strs[k].value); //加入绘画点
polyline.setStyle({
width: 3,
- material: material,
+ material: material1,
clampToGround: true,
});
drawALineLayerMany.addOverlay(polyline);
- let post = Strs[k].value.split(";")[0].split(",");
- let position = new global.DC.Position(post[0], post[1]);
- let Label = new global.DC.Label(position, Strs[k].name);
- Label.setStyle({
- font: "16px sans-serif", // CSS 字体设置
- scale: 1, //比例
- fillColor: white, //文字颜色
- showBackground: true, //是否显示背景
- backgroundColor: blue, //背景颜色
- // outlineColor: white, //边框颜色
- // outlineWidth: 10, //边框大小,
- });
- drawALineLayerMany.addOverlay(Label);
+ // let post = Strs[k].value.split(";")[0].split(",");
+ // let position = new global.DC.Position(post[0], post[1]);
+ // let Label = new global.DC.Label(position, Strs[k].name);
+ // Label.setStyle({
+ // font: "16px sans-serif", // CSS 字体设置
+ // scale: 1, //比例
+ // fillColor: white, //文字颜色
+ // showBackground: true, //是否显示背景
+ // backgroundColor: blue, //背景颜色
+ // // outlineColor: white, //边框颜色
+ // // outlineWidth: 10, //边框大小,
+ // });
+ // drawALineLayerMany.addOverlay(Label);
}
//多个点
let point = value[1];
@@ -832,7 +838,7 @@
let billboard = new global.DC.Billboard(
position,
- "img/dingwei/dingwei4.png"
+ "img/dingwei/dingwei1.png"
); //加入绘画点
billboard.setStyle({
pixelOffset: { x: 0, y: -17 }, //偏移像素
--
Gitblit v1.9.3