new GraphicCircle()
- Source:
Methods
(async, static) createObj() → {Promise.<GraphicCircle>}
构造一个新的 GraphicCircle 对象。
- Source:
Returns:
- Type
- Promise.<GraphicCircle>
(async, static) getBorderlineColor() → {Promise.<String>}
获取圆边界线的颜色
- Source:
Returns:
颜色 eg:'rgba(128, 128, 128, 128)'
- Type
- Promise.<String>
(async, static) getBorderlineWidth() → {Promise.<Number>}
获取圆边界线的宽度
- Source:
Returns:
- Type
- Promise.<Number>
(async, static) getRadius() → {Promise.<Number>}
获取半径
- Source:
Returns:
- Type
- Promise.<Number>
(async, static) isRadiusByPixel() → {Promise.<boolean>}
获取半径是否为像素单位
- Source:
Returns:
- Type
- Promise.<boolean>
(async, static) setBorderlineColor(color) → {Promise.<void>}
设置圆边界线的颜色
Parameters:
| Name | Type | Description |
|---|---|---|
color |
String | 颜色 eg:'rgba(128, 128, 128, 128)' |
- Source:
Returns:
- Type
- Promise.<void>
(async, static) setBorderlineWidth(width) → {Promise.<void>}
设置圆边界线的宽度
Parameters:
| Name | Type | Description |
|---|---|---|
width |
Number | 宽度 |
- Source:
Returns:
- Type
- Promise.<void>
(async, static) setCenterAndRadius(point, radius) → {Promise.<void>}
设置圆心位置和半径
Parameters:
| Name | Type | Description |
|---|---|---|
point |
Dot | 圆心位置 |
radius |
Number | 半径 |
- Source:
Returns:
- Type
- Promise.<void>
(async, static) setCenterPoint(point) → {Promise.<void>}
设置圆心位置
Parameters:
| Name | Type | Description |
|---|---|---|
point |
Dot | 圆心位置 |
- Source:
Returns:
- Type
- Promise.<void>
(async, static) setRadius(radius) → {Promise.<void>}
设置半径
Parameters:
| Name | Type | Description |
|---|---|---|
radius |
Number | 半径 |
- Source:
Returns:
- Type
- Promise.<void>
(async, static) setRadiusByPixel(pixel) → {Promise.<void>}
设置半径是否为像素单位(默认情况下为地图单位)
Parameters:
| Name | Type | Description |
|---|---|---|
pixel |
boolean | 半径是否为像素单位 |
- Source:
Returns:
- Type
- Promise.<void>