注记(行政区划)图层
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
对象有下面这些属性:
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
global |
Object | 三维球对象(YouScene.earth) |
- Implements:
Demo:
Members
-
haloColor : Color
-
获取或设置描边颜色;如果设置null,将不使用描边;undefined,将使用黑色描边
-
名字是否可见
-
Default Value:
true -
获取或设置是否可见
Methods
-
加载服务数据
Name Type Description globalObject 三维球对象(YouScene.earth) -
add(label) → Label
-
添加自定义文字到图层
Name Type Description labelLabel Label对象 Returns:
label对象 -
添加带文字和图标的点
Name Type Description jsonDataArray.<Object> Json数组 Name Type Description NameString 文字 LatitudeNumber 纬度,单位度 LongitudeNumber 经度,单位度 -
添加图层
Name Type Description globalObject 三维球对象(YouScene.earth) -
清除label
-
销毁
- Implements:
-
getById(id) → Feature
-
根据id获取图层内对象
Name Type Description idString 对象的id Returns:
返回查找到的对象,找不到返回undefined- Implements:
-
根据id获取图层内对象的索引
Name Type Description idString 对象的id Returns:
返回查找到的对象的索引,找不到返回undefined -
根据id移除标注
Name Type Description idString 对象的id -
启用或关闭聚合,关闭可提升性能
Name Type Description enableBoolean true时启用聚合,false时关闭聚合
Events
-
鼠标点击事件(如果子类Label的click被调用,那么这个事件不会生效)
- Implements:
-
添加标注事件
Name Type Description labelLayerLabelLayer 触发事件的对象 labelLabel 被添加的标注对象 - Implements:
-
标注清空事件
Name Type Description labelLayerLabelLayer 触发事件的对象 - Implements:
-
删除标注事件
Name Type Description labelLayerLabelLayer 触发事件的对象 labelLabel 被添加的标注对象 - Implements:
-
鼠标覆盖事件(如果子类Label的mouseHover被调用,那么这个事件不会生效)
- Implements:
-
鼠标移出事件(如果子类Label的mouseOut被调用,那么这个事件不会生效)
- Implements:
