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

Method getMapInfo

src/common/mapping/WebMapBase.js:593–613  ·  view source on GitHub ↗
(_taskID)

Source from the content-addressed store, hash-verified

591 }
592
593 getMapInfo(_taskID) {
594 this.webMapService
595 .getMapInfo()
596 .then(
597 (mapInfo) => {
598 if (this._taskID !== _taskID) {
599 return;
600 }
601 // 存储地图的名称以及描述等信息,返回给用户
602 this.mapParams = mapInfo.mapParams;
603 this._getMapInfo(mapInfo);
604 },
605 (error) => {
606 throw error;
607 }
608 )
609 .catch((error) => {
610 this._fire('mapcreatefailed', { error });
611 console.log(error);
612 });
613 }
614
615 /**
616 * @constructor

Callers 2

_initWebMapMethod · 0.95
_getStateMethod · 0.45

Calls 2

_getMapInfoMethod · 0.95
_fireMethod · 0.95

Tested by

no test coverage detected