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

Method _sendMapToUser

src/common/mapping/WebMapV2.js:2471–2484  ·  view source on GitHub ↗
(count, layersLen)

Source from the content-addressed store, hash-verified

2469 }
2470
2471 _sendMapToUser(count, layersLen) {
2472 if (count === layersLen) {
2473 this.addLayersSucceededLen = this._cacheLayerId.size;
2474 this._changeSourceListModel();
2475 const appreciableLayers = this.getLayers();
2476 const layerOptions = this._getSelfAppreciableLayers(appreciableLayers);
2477 this.rectifyLayersOrder(layerOptions.layers);
2478 this.fire('mapcreatesucceeded', {
2479 ...layerOptions,
2480 map: this.map,
2481 mapparams: this._mapInfo.mapParams
2482 });
2483 }
2484 }
2485
2486 rectifyLayersOrder(appreciableLayers, topLayerBeforeId) {
2487 const exsitLayers = super.rectifyLayersOrder(appreciableLayers, topLayerBeforeId);

Callers 2

_handleLayerInfoMethod · 0.95
_addLayerSucceededMethod · 0.95

Calls 5

rectifyLayersOrderMethod · 0.95
getLayersMethod · 0.45
fireMethod · 0.45

Tested by

no test coverage detected