Summary
Constructor
new Tadpole(options, callBack)
蝌蚪状元素Tadpole的构造函数。
注:如果使用插值,插值过密,会导致浏览器崩溃。options.length、options.frameCount的关系为:每米length,插值frameCount个点。
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | 设置项。
|
|||||||||||||||||||||
callBack |
function | 行至原坐标序列点的回调函数。 |
Example
let coordSeq = new hmap.basetype.CoordSeq([coord1,coord2]);
let tadpole=new hmap.geosolution.cell.Tadpole({
coordSeq:coordSeq,
length:360,//单位为米
frameCount:20,
maxSize:10,
});
Methods
-
destroy()
-
销毁对象,如果元素已经添加到其模型,需要先从模型中移除后再销毁
-
getId() → {String}
-
获取该对象的唯一标识符
Returns:
String -该对象的唯一标识符