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

Method sendMapToUser

src/openlayers/mapping/WebMap.js:2557–2562  ·  view source on GitHub ↗

* @private * @function WebMap.prototype.sendMapToUser * @description 将所有叠加图层叠加后,返回最终的map对象给用户,供他们操作使用 * @param {number} layersLen - 叠加图层总数

(layersLen)

Source from the content-addressed store, hash-verified

2555 * @param {number} layersLen - 叠加图层总数
2556 */
2557 sendMapToUser(layersLen) {
2558 const lens = this.isHaveGraticule ? layersLen + 1 : layersLen;
2559 if (this.layerAdded === lens && this.successCallback) {
2560 this.successCallback(this.map, this.mapParams, this.layers, this.baseLayer);
2561 }
2562 }
2563
2564 /**
2565 * @private

Callers 7

addSpecToMapMethod · 0.95
addGraticuleMethod · 0.95
getMapInfoSuccessMethod · 0.80
addLayersMethod · 0.80
addGeojsonFromUrlMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected