MCPcopy Create free account
hub / github.com/SuperMap/iClient-JavaScript / refresh

Method refresh

src/mapboxgl/overlay/theme/ThemeLayer.js:112–119  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

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];

Callers 3

onAddMethod · 0.95
clearMethod · 0.45
clearMethod · 0.45

Calls 2

getBoundsMethod · 0.45

Tested by

no test coverage detected