geosolution/cell~TracePoint(options)

数学模型点轨迹模型module:geosolution/math~TracePointModel的组成元素-点轨迹要素

Summary

Methods:
destroy

销毁对象,如果元素已经添加到其模型,需要先从模型中移除后再销毁

getId

获取id

Constructor

new TracePoint(options)

点轨迹要素的构造函数

Parameters:
Name Type Description
options object
Name Type Description
coordSeq module:basetype~CoordSeq

线动画的坐标序列,必填项。

speed Number

飞行速度,单位为米/秒,取值为大于0的数值,默认20,参数不在取值范围则自动取默认值。

fps Number

每秒帧数,用于计算每帧的速度,取值为大于0的数值,默认30,参数不在取值范围则自动取默认值。

color module:style~Color

点轨迹颜色值,默认值为new hmap.style.Color(240.0, 141.0, 65.0, 1.0)。

radius Number

动画点半径,像素单位,默认为10。

delay Number

动画延迟播放的时间,点轨迹的时间维参数,单位毫秒,默认为0,延迟为负表示动画提前播放。

Example
let coordseq = new hmap.basetype.CoordSeq([
   new hmap.basetype.Coordinate(120.18010426295471,30.20196616496277,0),
   new hmap.basetype.Coordinate(120.18102694285584,30.20046412791443,0)
])
let trace = new hmap.geosolution.cell.TracePoint({
    coordSeq:coordseq,
    speed:40,
    delay:0,
    color:new hmap.style.Color(240,141,65,1),
});

Methods

destroy()

销毁对象,如果元素已经添加到其模型,需要先从模型中移除后再销毁

getId() → {Number}

获取id

Returns:
Number -

一个点轨迹的id

Example
let plId = trace.getId();