MCPcopy Index your code
hub / github.com/SuperMap/iClient-JavaScript / refresh

Method refresh

src/mapboxgl/overlay/HeatMapLayer.js:159–164  ·  view source on GitHub ↗

* @function HeatMapLayer.prototype.refresh * @description 强制刷新当前热点显示,在图层热点数组发生变化后调用,更新显示。

()

Source from the content-addressed store, hash-verified

157 * @description 强制刷新当前热点显示,在图层热点数组发生变化后调用,更新显示。
158 */
159 refresh() {
160 if (this.map) {
161 this.renderer.setExtent(this.map.getBounds());
162 this.renderer.refresh();
163 }
164 }
165
166 /**
167 * @function HeatMapLayer.prototype.setOpacity

Callers 1

renderMethod · 0.95

Calls 2

setExtentMethod · 0.45
getBoundsMethod · 0.45

Tested by

no test coverage detected