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

Method _loadLayers

src/common/mapping/WebMapV2.js:112–124  ·  view source on GitHub ↗
(mapInfo, _taskID)

Source from the content-addressed store, hash-verified

110 _getMapInfo() {}
111
112 _loadLayers(mapInfo, _taskID) {
113 if (this.map) {
114 this._handleLayerInfo(mapInfo, _taskID);
115 } else {
116 setTimeout(() => {
117 this._createMap(mapInfo).then(() => {
118 this.map.on('load', () => {
119 this._handleLayerInfo(mapInfo, _taskID);
120 });
121 });
122 }, 0);
123 }
124 }
125
126 async _registerMapCRS(mapInfo) {
127 const { projection, extent = { leftBottom: {}, rightTop: {} }, baseLayer = {} } = mapInfo;

Callers 1

initializeMapMethod · 0.95

Calls 3

_handleLayerInfoMethod · 0.95
_createMapMethod · 0.95
onMethod · 0.45

Tested by

no test coverage detected