Summary
Constructor
new TracePoint(options)
点轨迹要素的构造函数
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
object |
|
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();