Skip to content

Line 线类 ​

判定 ​

isLine() ​

typescript
const isLine: (tar: any) => tar is Line

属性 ​

readonly id: string 唯一标识 ​

name: string|undefined 名称 ​

property: Recorc<string|symbol,any> 属性 ​

parent: Entity 父级节点 ​

show: boolean 是否显示 ​

redonly label: Label|undefined ​

positions: Point3d[] | [number, number, (number | undefined)?][] | ((time: JulianDate, result: object) => Cartesian3[] | [number, number, number][]) 坐标 ​

color: MapColor 颜色 ​

width: number 线宽 ​

material: MaterialProperty|undefined 材质 ​

clampToGround: boolean 贴地 ​

shadows: boolean 阴影 ​

zIndex: number 层级 ​

方法 ​

focus 聚焦 ​

  • duration 过渡时间(秒)
typescript
focus(duration?: number): void

destroy 销毁 ​

typescript
destroy(): boolean