Class: HeatmapPlugin

HeatmapPlugin()

传统热力图插件

Constructor

new HeatmapPlugin()

Methods

create(maxEdge, radius, offset, gradient)

生成热力图
Parameters:
Name Type Default Description
maxEdge Number 300 热力图图片的最大边长,默认值300。maxEdge和边界无关
radius Number 40 热点半径,最大值40
offset Object 热力图位置偏移,默认[0,0,0]
gradient Object null 颜色过渡参数 ,默认值:{ 0.25: "rgb(0,0,255)", 0.55: "rgb(0,255,0)", 0.85: "yellow", 1.0: "rgb(255,0,0)" }

setEnvelope(x1, y1, x2, y2)

设置边界
Parameters:
Name Type Description
x1 *
y1 *
x2 *
y2 *

setSimplePoints(simplePoints)

设置样本点
Parameters:
Name Type Description
simplePoints *