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

Method _clear

src/openlayers/mapping/WebMap.js:204–216  ·  view source on GitHub ↗

* @private * @function WebMap.prototype.clear * @description 清空地图

()

Source from the content-addressed store, hash-verified

202 * @description 清空地图
203 */
204 _clear() {
205 // 比例尺
206 this.scales = [];
207 // 分辨率
208 this.resolutionArray = [];
209 // 比例尺-分辨率 {scale: resolution}
210 this.resolutions = {};
211 // 计数叠加图层,处理过的数量(成功和失败都会计数)
212 this.layerAdded = 0;
213
214 this._removeBaseLayer();
215 this._removeLayers();
216 }
217
218 /**
219 * @function WebMap.prototype.refresh

Callers 12

refreshMethod · 0.95
CanvasRenderer.jsFile · 0.80
leaflet.jsFile · 0.80
leaflet-src.jsFile · 0.80
echarts-en.min.jsFile · 0.80
echarts.min.jsFile · 0.80
echarts.simple.jsFile · 0.80

Calls 2

_removeBaseLayerMethod · 0.95
_removeLayersMethod · 0.95

Tested by

no test coverage detected