IconSymbol3DLayer

3D图标符号图层构造函数。

关系

Extends

IconSymbol3DLayer Extends Symbol3DLayer

构造函数

IconSymbol3DLayer

3D图标符号图层构造函数。

new IconSymbol3DLayer(properties?)

参数

返回:IconSymbol3DLayer IconSymbol3DLayer对象

属性

anchor

图标相对于几何体的定位方式。

anchor: "center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "relative"

类型: "center" | "left" | "right" | "top" | "bottom" | "top-left" | "top-right" | "bottom-left" | "bottom-right" | "relative"

angle

图标的顺时针旋转角度(以度为单位)。

angle: number

类型: number

declaredClass

声明的类名

declaredClass: string

类型: string

destroyed

指示对象是否已被销毁

destroyed: boolean

类型: boolean

initialized

指示对象是否已初始化

initialized: boolean

类型: boolean

type

符号类型标识。

type: "icon"

类型: "icon"

访问器

anchorPosition

定义图标锚点相对于图标中心的位置。

get anchorPosition(): IconSymbol3DLayerAnchorPosition

返回: IconSymbol3DLayerAnchorPosition 定义图标锚点相对于图标中心的位置。

set anchorPosition(value: IconSymbol3DLayerAnchorPositionProperties): void

返回: void

material

用于着色图标的材质。

get material(): IconSymbol3DLayerMaterial

返回: IconSymbol3DLayerMaterial 用于着色图标的材质。

set material(value: IconSymbol3DLayerMaterialProperties): void

返回: void

outline

图标的轮廓样式。

get outline(): IconSymbol3DLayerOutline

返回: IconSymbol3DLayerOutline 图标的轮廓样式。

set outline(value: IconSymbol3DLayerOutlineProperties): void

返回: void

resource

用于可视化要素的形状(primitive)或图像URL(href)。

get resource(): IconSymbol3DLayerResource

返回: IconSymbol3DLayerResource 用于可视化要素的形状(primitive)或图像URL(href)。

set resource(value: IconSymbol3DLayerResourceProperties): void

返回: void

size

图标的大小,以点为单位。

get size(): number

返回: number 图标的大小,以点为单位。

set size(value: string | number): void

参数

  • value: string | number

返回: void

方法

addHandles

添加事件句柄到指定组

addHandles(handles, groupKey?): void

参数

  • handles: IHandle | IHandle 要添加的句柄或句柄数组
  • groupKey?: Exclude<T> 组标识键

返回:void

clone

创建符号图层的深度克隆。

clone(): IconSymbol3DLayer

返回:IconSymbol3DLayer

destroy

销毁对象实例

destroy(): void

返回:void

hasHandles

检查是否存在指定组的句柄

hasHandles(groupKey?): boolean

参数

  • groupKey?: Exclude<T> 组标识键

返回:boolean

removeHandles

移除指定组的所有句柄

removeHandles(groupKey?): void

参数

  • groupKey?: Exclude<T> 组标识键,如果不指定则移除默认组的句柄

返回:void

set

设置单个属性值

set(propertyName, value): this

参数

  • propertyName: string T 属性名称 ###### value 属性值

返回:this

toJSON

将此类的实例转换为 JSON 表示形式。

toJSON(): any

返回:any

watch

监听属性变化

watch(path, callback, sync?): WatchHandle

参数

  • path: string | string 要监听的属性路径,可以是字符串或字符串数组
  • callback: WatchCallback 属性变化时的回调函数
  • sync?: boolean 是否同步执行回调,默认为false

返回:WatchHandle

BIMFlux AI