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

Method _sendMapToUser

src/common/mapping/MapStyle.js:165–182  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

163 }
164
165 _sendMapToUser() {
166 const layersFromStyle = this._generateAppreciableLayers();
167 this._sourceListModel = new SourceListModelV2({
168 map: this.map,
169 layers: layersFromStyle,
170 appendLayers: this._appendLayers
171 });
172 this._sourceListModel.on({
173 layerupdatechanged: (params) => {
174 this.fire('layerupdatechanged', params);
175 }
176 });
177 this.fire('mapcreatesucceeded', {
178 map: this.map,
179 mapparams: { title: this.mapOptions.name, description: '' },
180 layers: this.getSelfAppreciableLayers()
181 });
182 }
183 };
184}

Callers 2

initializeMapMethod · 0.95
_addLayersToMapMethod · 0.95

Calls 4

onMethod · 0.45
fireMethod · 0.45

Tested by

no test coverage detected