BuildingComponentSublayerView
创建建筑组件子图层视图实例
关系
Extends
BuildingComponentSublayerView Extends Accessor
继承: Accessor
构造函数
BuildingComponentSublayerView
创建建筑组件子图层视图实例
new BuildingComponentSublayerView(properties?)
参数
- properties?:
BuildingComponentSublayerViewProperties子图层视图的初始化属性
返回:BuildingComponentSublayerView BuildingComponentSublayerView对象
属性
availableFields
为每个要素获取的属性字段列表
availableFields: string[]
类型: string[]
declaredClass
声明的类名
declaredClass: string
类型: string
destroyed
指示对象是否已被销毁
destroyed: boolean
类型: boolean
initialized
指示对象是否已初始化
initialized: boolean
类型: boolean
sublayer
正在查看的子图层
sublayer: BuildingComponentSublayer
suspended
如果子图层被挂起则为true
suspended: boolean
类型: boolean
updating
当子图层正在更新时为true
updating: boolean
类型: boolean
访问器
filter
用于过滤视图中显示的要素。
get filter(): FeatureFilter
返回: FeatureFilter 用于过滤视图中显示的要素。
方法
addHandles
添加事件句柄到指定组
addHandles(handles, groupKey?): void
返回:void
createQuery
创建一个查询参数对象,可用于获取视图中显示的要素。
createQuery(): Query
返回:Query
destroy
销毁对象实例
destroy(): void
返回:void
hasHandles
检查是否存在指定组的句柄
hasHandles(groupKey?): boolean
参数
- groupKey?:
Exclude<T> 组标识键
返回:boolean
highlight
高亮显示指定的要素。
queryExtent
查询满足条件的要素的范围。
queryExtent(query?, options?): Promise
参数
- query?:
QueryProperties查询参数,指定属性和空间过滤器。如果未提供参数,则返回客户端所有要素的范围。 - options?:
BuildingComponentSublayerViewQueryExtentOptions查询选项。
返回:Promise
queryFeatureCount
查询满足条件的要素数量。
queryFeatureCount(query?, options?): Promise
参数
- query?:
QueryProperties若要仅返回视图中可见的要素,请将查询对象的geometry参数设置为视图的范围。 查询参数,指定属性和空间过滤器。如果未提供参数,则返回客户端所有要素的数量。 - options?:
BuildingComponentSublayerViewQueryFeatureCountOptions查询选项。
返回:Promise
queryFeatures
查询满足条件的要素集合。
queryFeatures(query?, options?): FeatureSet
参数
- query?:
QueryProperties查询参数,指定属性和空间过滤器。如果未提供参数,则返回客户端所有要素。 - options?:
BuildingComponentSublayerViewQueryFeaturesOptions查询选项。
返回:Promise<FeatureSet>
queryObjectIds
查询满足条件的要素的 ObjectIDs。
queryObjectIds(query?, options?): Promise
参数
- query?:
QueryProperties查询参数,指定查询的属性。如果未提供查询参数,则返回所有已加载要素的 ObjectIDs。 - options?:
BuildingComponentSublayerViewQueryObjectIdsOptions查询选项。
返回:Promise
removeHandles
移除指定组的所有句柄
removeHandles(groupKey?): void
参数
- groupKey?:
Exclude<T> 组标识键,如果不指定则移除默认组的句柄
返回:void
set
设置单个属性值
set(propertyName, value): this
参数
propertyName:
stringT属性名称 ###### value 属性值
返回:this
watch
监听属性变化
watch(path, callback, sync?): WatchHandle
参数
- path:
string|string要监听的属性路径,可以是字符串或字符串数组 - callback:
WatchCallback属性变化时的回调函数 - sync?:
boolean是否同步执行回调,默认为false
返回:WatchHandle

BIMFlux AI
