Skip to content

YY. ArcCurve

覆盖物弧线 基于 YY. Overlay

creation

  • constructor(lnglats, [style], [pro], [conf])
    • lnglats {Array[Array||YY. LngLat]}经纬度
    • style {YY. Style} 样式
    • pro {Object} 附加属性值
    • conf {Object} 基本配置

events

example

demo

js
var arcCur = new YY.ArcCurve(
    [
        [120, 31],
        [121, 31],
        [122, 31], //多个坐标集合,形成串
    ],
    YY.Style.formatLine({
        lineWidth: 5,
        lineColor: "red"
    })
);
vectorLayer.addOverlay(arcCur);

method

getLngLats()

setLngLats(lnglats)

  • 设置经纬度
  • 参数
  • 返回值: this

animateShow(options, step)

  • 动态显示线
  • 参数
    • {Object} options: 动画配置
    • {function} step: 回调函数
  • 返回值: this

其他方法参考

YY. Overlay

This document is generated by vitepress and Edit by deyihu