Summary
Constructor
new Trail(options)
线纹理要素构造函数
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
|
Example
let coordseq = new hmap.basetype.CoordSeq([coord1,coord2])
let trail = new hmap.geosolution.cell.Trail({
coordSeq:coordseq, //坐标序列
showLine:true,
lineWidth:10,
lineColor:new hmap.style.Color(0,200,0,1),
symbolSrc:"../public/imgs/trail/arrow-white.png",
isAnimate:true,
speed:3
});
Methods
-
destroy()
-
销毁对象
-
getId() → {String}
-
获取线纹理动画对象的id值
Returns:
String -线纹理动画对象的id值