Summary
Constructor
new ScatterPoint(options)
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object | 设置项。
|
Throws:
参数类型不对,对应方法运行报错
Example
let scatter=new hmap.geosolution.cell.ScatterPoint({
center:new hmap.basetype.Coordinate(120.235078,30.19345,0),
type:"BubblePoint",//枚举值,"BubblePoint"、"BreathPoint"、"BubbleCircle"、"BreathCircle"
size:2,
maxSize:20,
color:new hmap.style.Color(255,0,0,1),
colorChange:new hmap.style.Color(255,255,0,1),//"BubblePoint"专用
colorRange:[1.0,0.0]//"BubblePoint"、"BubbleCircle"、"BreathCircle"使用
});
Methods
-
destroy()
-
销毁对象,如果元素已经添加到其模型,需要先从模型中移除后再销毁
-
getId() → {String}
-
获取对象的唯一标识符
Returns:
String -对象的唯一标识符