YY. ArcCurve
覆盖物弧线 基于 YY. Overlay
creation
- constructor(lnglats, [style], [pro], [conf])
- lnglats {Array[Array||YY. LngLat]}经纬度
- style {YY. Style} 样式
- pro {Object} 附加属性值
- conf {Object} 基本配置
events
- 参考 YY. Overlay
example
js
var arcCur = new YY.ArcCurve(
[
[120, 31],
[121, 31],
[122, 31], //多个坐标集合,形成串
],
YY.Style.formatLine({
lineWidth: 5,
lineColor: "red"
})
);
vectorLayer.addOverlay(arcCur);
method
getLngLats()
- 获取经纬度
- 返回值: Array[YY. LngLat]
setLngLats(lnglats)
- 设置经纬度
- 参数
- {Array[YY.LngLat]}
lnglats
:
- {Array[YY.LngLat]}
- 返回值:
this
animateShow(options, step)
- 动态显示线
- 参数
- {Object}
options
: 动画配置 - {function}
step
: 回调函数
- {Object}
- 返回值:
this