添加wall(立体墙)
//边缘立体墙效果
addBorderWall(geometry: Geometry) {
if (geometry) {
const wallSymbol = {
type: "line-3d",
symbolLayers: [
{
type: "path",
profile: "quad",
material: {
color: [100, 100, 100]
},
width: 5, // the width in m
height: 30, // the height in m
anchor: "bottom", // the vertical anchor is set to the lowest point of the wall
profileRotation: "heading"
}
]
};
let graphic = new this.arcgisMod.Graphic({
geometry,
symbol: wallSymbol
});
//this._3DGraphicLayer.graphics.add(graphic);
}
}
更新边缘线为wall(立体墙)
//添加graphic的wall
setBorderWall(graphic: Graphic) {
if (graphic) {
// let { geometry } = graphic;
// let { type } = geometry;
const wallSymbol: any = {
type: "line-3d",
symbolLayers: [
{
type: "path",
profile: "quad",
material: {
color: [100, 100, 100]
},
width: 5, // the width in m
height: 30, // the height in m
anchor: "bottom", // the vertical anchor is set to the lowest point of the wall
profileRotation: "heading"
}
]
};
graphic.symbol = wallSymbol;
}
}