Commit 340bdb57 authored by xxx's avatar xxx

1

parent 20effc90
...@@ -181,7 +181,7 @@ export default { ...@@ -181,7 +181,7 @@ export default {
var graphicLayer4 = new mars3d.layer.GraphicLayer(); var graphicLayer4 = new mars3d.layer.GraphicLayer();
map.addLayer(graphicLayer4); map.addLayer(graphicLayer4);
that.bindLayerPopup(graphicLayer4,item.number) that.bindLayerPopup(graphicLayer4,item.number)
that.addDemoGraphics(graphicLayer4,item.number,item.equipmentName,item.carclass,item.pic); that.addDemoGraphics(graphicLayer4,item.number,item.equipmentName,item.carclass,item.pic,item.status);
}) })
// 抛出事件 // 抛出事件
...@@ -211,7 +211,7 @@ export default { ...@@ -211,7 +211,7 @@ export default {
graphicLayer.addGraphic(graphic); //还可以另外一种写法: graphic.addTo(graphicLayer) graphicLayer.addGraphic(graphic); //还可以另外一种写法: graphic.addTo(graphicLayer)
}, },
//实时位置1 //实时位置1
addDemoGraphics(graphicLayer4,number,equipmentName,carclass,pic) { addDemoGraphics(graphicLayer4,number,equipmentName,carclass,pic,status) {
let that = this; let that = this;
//模型配置 //模型配置
...@@ -231,9 +231,9 @@ export default { ...@@ -231,9 +231,9 @@ export default {
silhouetteSize: 4 silhouetteSize: 4
}, },
label: { label: {
text: number, text: status == '1' ? '\n' + number : number,
font_size: 18, font_size: 18,
color: "blue", color: status == '1' ? "#ff0000" : "blue",
outline: true, outline: true,
outlineColor: "#000000", outlineColor: "#000000",
pixelOffsetY: -50, pixelOffsetY: -50,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment