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

Function onError

src/leaflet/mapping/ImageMapLayer.js:287–294  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

285 this.fire('load', { bounds: bounds });
286 };
287 var onError = function() {
288 this._map && this._map.removeLayer(this._currentImage);
289 /**
290 * @event ImageMapLayer#error
291 * @description 请求图层加载失败后触发。
292 */
293 this.fire('error');
294 }
295 this._currentImage.off('load');
296 this._currentImage.once('load', onLoad, this);
297 this._currentImage.off('error');

Callers 1

LocationControl.jsFile · 0.85

Calls 2

removeLayerMethod · 0.45
fireMethod · 0.45

Tested by

no test coverage detected