new ScaleUnitBar(options)
初始化配置
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | 配置项 Properties
|
Extends
Methods
-
delete()
-
删除场景图层
- Overrides:
-
getVisible() → {Boolean}
-
获取图层显示状态
Returns:
Boolean -显示状态
- Overrides:
-
getZIndex() → {Number}
-
获取图层叠放次序
Returns:
Number -层级
- Overrides:
-
setColor(color)
-
设置颜色
Parameters:
Name Type Description color
String 十六进制颜色值
-
setTextColor(color)
-
设置文本颜色
Parameters:
Name Type Description color
String 十六进制颜色值
-
setViewPos(x, y)
-
设置显示位置
Parameters:
Name Type Description x
Number 水平像素位置
y
Number 垂直像素位置
-
setVisible(bvisible)
-
设置图层显示状态
Parameters:
Name Type Description bvisible
Boolean 显示状态
- Overrides:
-
setZIndex(z)
-
设置图层叠放次序
Parameters:
Name Type Description z
Number 层级
- Overrides: