Map
构造函数
构造函数
Map
构造函数
属性
allLayers
所有图层
allLayers: Collection
类型: Collection
allTables
所有表格
allTables: Collection
类型: Collection
editableLayers
可编辑图层
editableLayers: Collection
类型: Collection
访问器
basemap
底图
get basemap(): Basemap
返回: Basemap 底图
ground
地面
get ground(): Ground
返回: Ground 地面
layers
图层集合
get layers(): Collection
返回: Collection 图层集合
tables
表格集合
get tables(): Collection
返回: Collection 表格集合
方法
add
添加图层
add(layer, index?): void
返回:void
addMany
批量添加图层
addMany(layers, index?): void
参数
- layers:
Layer要添加到图层集合的图层 - index?:
number图层可以添加到图层集合中的指定索引位置。如果未指定索引或指定的索引大于当前图层数,图层将自动追加到图层集合的图层列表中,索引将被标准化
返回:void
destroy
销毁地图
destroy(): void
返回:void
findLayerById
根据图层ID查找图层
findTableById
根据表格ID查找表格
remove
移除图层
removeAll
移除所有图层
removeAll(): Layer
返回:Layer
removeMany
批量移除图层
reorder
重新排序图层

BIMFlux AI
