(_taskID)
| 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 |
no test coverage detected