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

Method refresh

src/common/overlay/levelRenderer/Painter.js:172–181  ·  view source on GitHub ↗

* @function LevelRenderer.Painter.prototype.refresh * @description 刷新。 * * @param {function} callback - 刷新结束后的回调函数。 * @param {boolean} paintAll - 强制绘制所有 shape。 * @return {LevelRenderer.Painter} this。

(callback, paintAll)

Source from the content-addressed store, hash-verified

170 * @return {LevelRenderer.Painter} this。
171 */
172 refresh(callback, paintAll) {
173 var list = this.storage.getShapeList(true);
174 this._paintList(list, paintAll);
175
176 if (typeof callback == 'function') {
177 callback();
178 }
179
180 return this;
181 }
182
183
184 /**

Callers 3

renderMethod · 0.95
refreshShapesMethod · 0.95
resizeMethod · 0.95

Calls 3

_paintListMethod · 0.95
getShapeListMethod · 0.80
callbackFunction · 0.50

Tested by

no test coverage detected