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

Method _sendMapToUser

src/common/mapping/WebMapV3.js:688–703  ·  view source on GitHub ↗

* @private * @function WebMapV3.prototype._sendMapToUser * @description emit 图层加载成功事件。

()

Source from the content-addressed store, hash-verified

686 * @description emit 图层加载成功事件。
687 */
688 _sendMapToUser() {
689 this._sourceListModel = new SourceListModelV3({
690 map: this.map,
691 appendLayers: this._appendLayers,
692 mapInfo: this._mapInfo,
693 mapResourceInfo: this._mapResourceInfo,
694 legendList: this._legendList,
695 l7LayerUtil
696 });
697 this._sourceListModel.on({
698 layerupdatechanged: (params) => {
699 this.fire('layerupdatechanged', params);
700 }
701 });
702 this.fire('mapcreatesucceeded', { map: this.map, mapparams: this.mapParams, layers: this.getSelfAppreciableLayers() });
703 }
704
705 _renameLayerIdsContent(layerIds, layerIdRenameMapList) {
706 if (!layerIds) {

Callers 1

_addLayersToMapMethod · 0.95

Calls 3

onMethod · 0.45
fireMethod · 0.45

Tested by

no test coverage detected