* @function ThemeLayer.prototype.refresh * @description 强制刷新当前热点显示,在图层热点数组发生变化后调用,更新显示。
()
| 110 | * @description 强制刷新当前热点显示,在图层热点数组发生变化后调用,更新显示。 |
| 111 | */ |
| 112 | refresh() { |
| 113 | if (this.features.length === 0) { |
| 114 | return; |
| 115 | } |
| 116 | if (this.map) { |
| 117 | this.redrawThematicFeatures(this.map.getBounds()); |
| 118 | } |
| 119 | } |
| 120 | |
| 121 | _createCanvasContainer() { |
| 122 | this.movingOffset = [0, 0]; |
no test coverage detected