扩散圈用于表达关键时间发生的位置。本API可以增加和更新扩散圈,并定义扩散圈的一些参数。

    调用:

    __cy.spreadring.add( {
      "rings":[{
        id : "",
        position_type: 0,
        position: [1,2,3],
        radis:222,
        template:1,
        color: "#222113",
      }]
     }, callback)
    

    注意入参是一个对象

    id //对象编号
    position_type //位置信息类型,0 表示xyz, 1表示经纬度⾼度
    position //[x, y, z] or [经度, 纬度, 距地面高度]
    radis //扩散圈半径
    template //模板 取值为1-5,美术团队可以进行扩展。
    详细模板效果参考下图(后补)
    color //设置扩散圈的基础颜色

    callback 回调输出

    {
       result:"" //输出结果 成功:"ok", 失败 返回具体原因,
       id:1
    }
    

    参考效果图
    image.png
    CyberAPITester - Google Chrome 2022-02-21 16-30-14-00_00_00-2022_02_21_16_30_37.gif