Constructor
new Layer()
Extends
- THING.BaseObject
Members
(readonly) objects :Array
图层中所有的对象
Type:
- Array
offsetHeight :Number
离地高度 单位:米
Type:
- Number
Example
featureLayer.offsetHeight = 200; //设置离地高度200米
offsetHeightField :String
离地高度的字段
Type:
- String
Example
featureLayer.offsetHeightField = 'height'; //根据height字段设置离地高度
Methods
setVisible(value, effectChildren)
设置图层可见
对于图层来说,如果仅仅设置图层本身节点的visible,第二个参数传false,如果需要影响图层内各要素的visible,第二个参数传true
注:如果图层内要素visible为true 而图层本身的visible是false 这个要素是不会被显示的
Parameters:
Name | Type | Description |
---|---|---|
value |
Boolean | 是否可见 |
effectChildren |
Boolean | 是否影响图层内要素 |