Skip to content

Commit 171f975

Browse files
committed
fix HeatMapLayer UT; review by qiw
1 parent f3b6376 commit 171f975

File tree

5 files changed

+151
-612
lines changed

5 files changed

+151
-612
lines changed

src/common/overlay/heatmap/HeatMapLayerRenderer.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ export class HeatMapLayerRenderer {
351351
_createCanvasContainer(mapContainer) {
352352
//热点图要求使用canvas绘制,判断是否支持
353353
this.rootCanvas = document.createElement("canvas");
354+
this.rootCanvas.id = this.options.id;
354355
this.rootCanvas.width = this.maxWidth = parseInt(this.mapCanvas.style.width);
355356
this.rootCanvas.height = this.maxHeight = parseInt(this.mapCanvas.style.height);
356357
this.canvasContext = this.rootCanvas.getContext('2d');

0 commit comments

Comments
 (0)