Methods
Name | Type | Description | ||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
viewer |
Viewer | 场景视图 | ||||||||||||||||||||||||||||||||||||||||
boundingbox |
Rectangle | 热力图范围 | ||||||||||||||||||||||||||||||||||||||||
options |
Object |
可选参数
|
Returns:
返回heatmap的实例化对象
Example:
var heatMapData = [{x: 112, y: 30, value: 10}, {x: 113, y: 31, value: 20}];
var bounds = {
west: 112,
east: 113,
south: 30,
north: 31
};
var heatMap = Cesium.CesiumHeatmap.create(viewer, bounds, {
radius: 8,
maxOpacity: 0.8,
minOpacity: 0.2,
useClustering: true,
blur: 0.75,
gradient: {'0.3':'rgb(0,0,255)','0.65':'yellow','0.8':'orange','0.95':'red'},
alpha: 0.8,
};
Convert a mercator location into a WGS84 location
p: the mercator lcation like {x, y}