Commit 19e13351 authored by xxx's avatar xxx

终端添加路径导航

parent 7467c1a0
...@@ -215,34 +215,6 @@ export default { ...@@ -215,34 +215,6 @@ export default {
let that = this; let that = this;
//模型配置 //模型配置
// const graphic = new mars3d.graphic.ModelPrimitive({
// style: {
// //url: carclass == '铲车' ? '//data.mars3d.cn/gltf/mars/car/wajueji.glb' : '//data.mars3d.cn/gltf/imap/1d4f63111fc9499dac5cee2286ad7bb3/gltf/gltf2.gltf',
// url: carclass == '铲车' ? '//data.mars3d.cn/gltf/mars/car/wajueji.glb' : '//data.mars3d.cn/gltf/mars/car/tufangche.glb',
// scale: 2,
// minimumPixelSize: 50,
// // 高亮时的样式(默认为鼠标移入,也可以指定type:'click'单击高亮),构造后也可以openHighlight、closeHighlight方法来手动调用
// highlight: {
// type: mars3d.EventType.click,
// silhouette: true,
// silhouetteColor: "#ff0000",
// silhouetteSize: 4
// },
// label: {
// // 不需要文字时,去掉label配置即可
// text: carclass == '铲车' ? number + '\n🏗' : number + '\n🚚',
// font_size: 22,
// color: "#ff0000",
// outline: true,
// outlineColor: "#000000",
// pixelOffsetY: -20,
// distanceDisplayCondition: true,
// distanceDisplayCondition_far: 50000,
// distanceDisplayCondition_near: 0
// }
// }
// })
const graphic = new mars3d.graphic.BillboardEntity({ const graphic = new mars3d.graphic.BillboardEntity({
style: { style: {
//image: pic ? 'http://8.143.203.103:9090/avatar/' + pic : ddd, //image: pic ? 'http://8.143.203.103:9090/avatar/' + pic : ddd,
...@@ -259,7 +231,6 @@ export default { ...@@ -259,7 +231,6 @@ export default {
silhouetteSize: 4 silhouetteSize: 4
}, },
label: { label: {
// 不需要文字时,去掉label配置即可
text: number, text: number,
font_size: 18, font_size: 18,
color: "blue", color: "blue",
...@@ -301,13 +272,14 @@ export default { ...@@ -301,13 +272,14 @@ export default {
}, },
// 装车箭头线 graphicLayer.removeGraphic(graphic); // 装车箭头线 graphicLayer.removeGraphic(graphic);
addArrowGraphic3(boo,points) { addArrowGraphic3(boo,points) {
if(boo){
graphicLayerZ = new mars3d.layer.GraphicLayer(); graphicLayerZ = new mars3d.layer.GraphicLayer();
map.addLayer(graphicLayerZ); map.addLayer(graphicLayerZ);
if(boo){
graphicLayerZ.removeGraphic(graphicZ);
graphicZ = new mars3d.graphic.PolylineEntity({ graphicZ = new mars3d.graphic.PolylineEntity({
positions: points, positions: points,
style: { style: {
width: 10, width: 6,
materialType: mars3d.MaterialType.PolylineOutline, materialType: mars3d.MaterialType.PolylineOutline,
color: Cesium.Color.ORANGE, color: Cesium.Color.ORANGE,
outlineWidth: 2, outlineWidth: 2,
......
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