* @private * @function WebMapV3.prototype._sendMapToUser * @description emit 图层加载成功事件。
()
| 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) { |
no test coverage detected