图形点图层, 只带颜色和大小的小圆点
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
对象有下面这些属性:
|
||||||||||||||||||||||||||||||||||||||||
global |
Object | 三维球对象(YouScene.earth) |
- Implements:
Example:
var pointLayer = youScene.layers.addPointLayer({
id: 'pointLayer',
name: 'pointLayer',
});
Demo:
Members
-
获取圆点的数量
-
获取或设置是否可见
Methods
-
add(point) → Point
-
添加图标
Name Type Description point
Point 对象 Fires:
- PointLayer#event:featureAdded
Returns:
point 对象 -
清空Point
-
销毁
- Implements:
-
getById(id) → Feature
-
根据id获取图层内对象
Name Type Description id
String 对象的id Returns:
返回查找到的对象,找不到返回undefined- Implements:
-
移除图标
Name Type Description point
Point 对象 Returns:
删除成功返回true, 删除失败返回false -
通过id移除图标
Name Type Description id
String 唯一标识符 Returns:
删除成功返回true, 删除失败返回false
Events
-
圆点点击事件(如果子类icon的click被调用,那么则相应子类的click事件)
- Implements:
-
鼠标覆盖事件(如果子类icon的mouseHover被调用,那么则相应子类的mouseHover事件)
- Implements:
-
鼠标移出事件(如果子类icon的mouseOut被调用,那么则相应子类的mouseOut事件)
- Implements: