(mapInfo, map)
| 51 | } |
| 52 | |
| 53 | async initializeMap(mapInfo, map) { |
| 54 | try { |
| 55 | this.baseProjection = await this._registerMapCRS(mapInfo); |
| 56 | if (map) { |
| 57 | if (!crsManager.isSameProjection(map, this.baseProjection) && !this.ignoreBaseProjection) { |
| 58 | this.fire('projectionnotmatch'); |
| 59 | return; |
| 60 | } |
| 61 | this._appendLayers = true; |
| 62 | this.map = map; |
| 63 | } |
| 64 | this._mapInfo = mapInfo; |
| 65 | this._loadLayers(mapInfo, this._taskID); |
| 66 | } catch (error) { |
| 67 | console.error(error); |
| 68 | this.fire('mapcreatefailed', { error }); |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | cleanLayers(layers) { |
| 73 | super.cleanLayers(layers); |
nothing calls this directly
no test coverage detected