HeatMap

new SuperMap3D.HeatMap(options)

Heatmap class. Through this class, you can customize various properties of the heat map, and realize various functions such as adding points on the heat map in real time.
Name Type Description
options Object Parameters have the following properties:
Name Type Description
quality Quality optional The quality of the heatmap, the default value is MEDIUM
intensityRange Cartesian2 optional Heatmap intensity value range, default 0 to 1
bounds bounds optional Geographic extent of heatmap data
Example:
var heatMap = new HeatMap({
quality: Quality.HIGH,
intensityRange: new SuperMap3D.Cartesian2(0.2,0.8),
});

Members

Get or set the geographic boundaries of the heatmap data.

maxPerFrameDrawCount : Number

Get or set the maximum number of points drawn per frame.

readonlytexture : Texture

Get the texture of the heatmap.

Methods

addPoint(x, y, intensity, size)

Add points.
Name Type Description
x Number the x-coordinate of the point
y Number the y-coordinate of the point
intensity Number intensity value of the point
size Number point size

setData(data)

Add point sets in batches.
Name Type Description
data Array Point set data to be added
Example:
var heatMap = new HeatMap();
heatMap.setData();
scene.primitives.add(heatMap);