Skip to content

Point 点类

判定

isPoint()

typescript
const isPoint: (tar: any) => tar is Point

属性

readonly id: string 唯一标识

name: string|undefined 名称

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

parent: Entity 父级节点

show: boolean 是否显示

redonly label: Label|undefined

position: Point3d | [number, number, (number | undefined)?] | ((time: JulianDate, result: object) => [number, number, (number | undefined)?] | Cartesian3) 中心点位

img: string | HTMLCanvasElement | ((time: JulianDate, result: object) => string | HTMLCanvasElement)|undefined

rotation: number|undefined 旋转角度

offset: [number,number]|undefined 偏移量

size: number 点大小

absolute: boolean 是否绝对定位

color: MapColor 填充颜色

outlineWidth: number 描边宽度 点

outlineColor: MapColor 描边颜色 点

width: number 图片宽度

height: number 图片高度

scale: number 图片缩放大小

方法

focus 聚焦

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

destroy 销毁

typescript
destroy(): boolean