FeatureLayer
类:SHP图层
Constructor
new Glodon.Bimface.Earth.Layer.FeatureLayer(option)
构造FeatureLayer图层
Parameters:
Name | Type | Description |
---|---|---|
option | Object | 图层配置 |
Methods
getBoundingBox()
获取包围盒信息
Returns:
Type | Description |
---|---|
Object | 包围盒对象 |
getId()
获取图层ID
Returns:
Type | Description |
---|---|
String | 图层ID |
getLocation()
获取模型基点位置
Returns:
Type | Description |
---|---|
Object | 建模原点对应的经纬度、高程 |
getOpacity()
获取图层不透明度
Returns:
Type | Description |
---|---|
Number | 图层不透明度 |
getTransformation()
获取坐标变换状态
Returns:
Type | Description |
---|---|
Array | 描述模型坐标变换的对象 |
hide()
隐藏图层
setLocation(location)
设置模型基点位置
Parameters:
Name | Type | Description |
---|---|---|
location | Object | 建模原点对应的经纬度、高程 |
setOpacity(opacity)
设置图层不透明度
Parameters:
Name | Type | Description |
---|---|---|
opacity | Number | 透明度,取值范围[0, 1] |
setTransformation(transformation)
设置坐标变换状态
Parameters:
Name | Type | Description |
---|---|---|
transformation | Array | 描述模型坐标变换的对象 |
show()
显示图层