您好,需要添加context,可以这样写
var bounds = new Cesium.BoundingRectangle(minX, minY, maxX - minX, maxY - minY);
var heatMap = new Cesium.HeatMap({
intensityRange: new Cesium.Cartesian2(minDepth, maxDepth),
// intensityRange: new Cesium.Cartesian2(0, 1),
bounds: bounds,
context: scene._context
});
scene._primitives.add(heatMap);
heatMap.setData(datas);