FeatureLayer

类:SHP图层

Constructor

new Glodon.Bimface.Earth.Layer.FeatureLayer(option)

构造FeatureLayer图层

Parameters:
NameTypeDescription
optionObject

图层配置

idString

图层ID

nameString

图层名称

viewTokenString

加载资源的访问令牌

isVisibleBoolean

加载资源时的可见性,默认为true,选填

locationObject

建模原点对应的经纬度、高程,选填

Methods

getBoundingBox()

获取包围盒信息

Returns:
TypeDescription
Object

包围盒对象

getId()

获取图层ID

Returns:
TypeDescription
String

图层ID

getLocation()

获取模型基点位置

Returns:
TypeDescription
Object

建模原点对应的经纬度、高程

getOpacity()

获取图层不透明度

Returns:
TypeDescription
Number

图层不透明度

getTransformation()

获取坐标变换状态

Returns:
TypeDescription
Array

描述模型坐标变换的对象

hide()

隐藏图层

setLocation(location)

设置模型基点位置

Parameters:
NameTypeDescription
locationObject

建模原点对应的经纬度、高程

setOpacity(opacity)

设置图层不透明度

Parameters:
NameTypeDescription
opacityNumber

透明度,取值范围[0, 1]

setTransformation(transformation)

设置坐标变换状态

Parameters:
NameTypeDescription
transformationArray

描述模型坐标变换的对象

show()

显示图层