Commit f672485f authored by xxx's avatar xxx

修改轨迹展示效果

parent 0daa3731
...@@ -305,7 +305,12 @@ export default { ...@@ -305,7 +305,12 @@ export default {
that.stopCarCoordinates.forEach((item,index)=>{ that.stopCarCoordinates.forEach((item,index)=>{
var graphicLayer3 = new mars3d.layer.GraphicLayer(); var graphicLayer3 = new mars3d.layer.GraphicLayer();
map.addLayer(graphicLayer3); map.addLayer(graphicLayer3);
initGraphicManager(graphicLayer3); var itemText = `<table style="width: auto;">
<tr>
<th scope="col" colspan="2" style="text-align:center;font-size:15px;">${item.time1}${item.time2}</th>
</tr>
</table>`;
initGraphicManager(graphicLayer3,itemText);
that.addDemoGraphic2(graphicLayer3,item); that.addDemoGraphic2(graphicLayer3,item);
}) })
...@@ -410,17 +415,20 @@ export default { ...@@ -410,17 +415,20 @@ export default {
style: { style: {
width: 6, width: 6,
materialType: mars3d.MaterialType.PolylineOutline, materialType: mars3d.MaterialType.PolylineOutline,
color: Cesium.Color.ORANGE, color: 'blue',
outlineWidth: 2,
outlineColor: Cesium.Color.BLACK,
label: { label: {
text: '', text: "",
font_size: 18, font_size: 18,
color: "black", color: "white",
distanceDisplayCondition: true, distanceDisplayCondition: true,
distanceDisplayCondition_far: 500000, distanceDisplayCondition_far: 500000,
distanceDisplayCondition_near: 0 distanceDisplayCondition_near: 0,
} visibleDepth:false,
},
highlight: {
type: mars3d.EventType.click,
color: "#ff0000",
},
}, },
}) })
graphicLayer.addGraphic(graphic) graphicLayer.addGraphic(graphic)
......
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