ControlPointsGeoreference
创建一个新的ControlPointsGeoreference实例。
关系
Extends
ControlPointsGeoreference Extends Accessor
继承: Accessor
构造函数
ControlPointsGeoreference
创建一个新的ControlPointsGeoreference实例。
new ControlPointsGeoreference(properties?)
参数
- properties?:
ControlPointsGeoreferenceProperties用于初始化控制点地理参考的属性对象
返回:ControlPointsGeoreference ControlPointsGeoreference对象
属性
controlPoints
定位媒体元素的控制点数组,包含两个、三个或四个控制点。
controlPoints: ControlPoint
类型: ControlPoint
declaredClass
声明的类名
declaredClass: string
类型: string
destroyed
指示对象是否已被销毁
destroyed: boolean
类型: boolean
height
定义显示元素的大小,通常是元素的高度(以像素为单位)。
height: number
类型: number
initialized
指示对象是否已初始化
initialized: boolean
类型: boolean
type
地理参考类型,固定为"control-points"。
type: "control-points"
类型: "control-points"
width
定义显示元素的大小,通常是元素的宽度(以像素为单位)。
width: number
类型: number
方法
addHandles
添加事件句柄到指定组
addHandles(handles, groupKey?): void
返回:void
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:
stringT属性名称 ###### value 属性值
返回:this
toMap
将给定的源点转换为地图点。
toSource
将给定的地图点转换为源点。
toSource(point): SourcePoint
参数
- point:
Point点几何对象。如果点的空间参考系统与第一个控制点的mapPoint不同,将进行重投影。需要加载投影引擎来执行重投影,否则返回null
返回:SourcePoint
watch
监听属性变化
watch(path, callback, sync?): WatchHandle
参数
- path:
string|string要监听的属性路径,可以是字符串或字符串数组 - callback:
WatchCallback属性变化时的回调函数 - sync?:
boolean是否同步执行回调,默认为false
返回:WatchHandle

BIMFlux AI
