(mapId, preserveMap = false)
| 574 | } |
| 575 | |
| 576 | setMapId(mapId, preserveMap = false) { |
| 577 | if (typeof mapId === 'string' || typeof mapId === 'number') { |
| 578 | this.mapId = mapId; |
| 579 | this.webMapInfo = null; |
| 580 | } else if (mapId !== null && typeof mapId === 'object') { |
| 581 | this.webMapInfo = mapId; |
| 582 | this.mapId = ''; |
| 583 | } |
| 584 | this.webMapService.setMapId(mapId); |
| 585 | if (!mapId) { |
| 586 | return; |
| 587 | } |
| 588 | setTimeout(() => { |
| 589 | this._initWebMap(!preserveMap); |
| 590 | }, 0); |
| 591 | } |
| 592 | |
| 593 | getMapInfo(_taskID) { |
| 594 | this.webMapService |
no test coverage detected