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

Method initWebMap

src/common/mapping/WebMapV2Base.js:147–166  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

145 }
146
147 initWebMap() {
148 this.clean();
149 this.serverUrl = this.serverUrl && this.webMapService.handleServerUrl(this.serverUrl);
150 if (this.webMapInfo) {
151 // 传入是webmap对象
152 const mapInfo = this.webMapInfo;
153 mapInfo.mapParams = {
154 title: this.webMapInfo.title,
155 description: this.webMapInfo.description
156 };
157 this.mapParams = mapInfo.mapParams;
158 this._getMapInfo(mapInfo);
159 return;
160 } else if (!this.mapId || !this.serverUrl) {
161 this._createMap();
162 return;
163 }
164 this._taskID = new Date();
165 this.getMapInfo(this._taskID);
166 }
167
168 getMapInfo(_taskID) {
169 this.serverUrl = this.serverUrl && this.webMapService.handleServerUrl(this.serverUrl);

Callers 1

Calls 5

cleanMethod · 0.95
_getMapInfoMethod · 0.95
_createMapMethod · 0.95
getMapInfoMethod · 0.95
handleServerUrlMethod · 0.80

Tested by

no test coverage detected