diff --git a/src/common/mapping/WebMapV2.js b/src/common/mapping/WebMapV2.js index 145132f51..375d36636 100644 --- a/src/common/mapping/WebMapV2.js +++ b/src/common/mapping/WebMapV2.js @@ -191,7 +191,7 @@ export function createWebMapV2Extending(SuperClass, { MapManager, mapRepo }) { } } else { wkt = mapRepo.CRS.get(this.baseProjection).WKT - this._defineProj4(wkt); + this._defineProj4(wkt || projection); bounds = [ mapInfo.extent.leftBottom.x, mapInfo.extent.leftBottom.y, diff --git a/test/mapboxgl/mapping/WebMapV2Spec.js b/test/mapboxgl/mapping/WebMapV2Spec.js index d63b1fa7c..84ed6031b 100644 --- a/test/mapboxgl/mapping/WebMapV2Spec.js +++ b/test/mapboxgl/mapping/WebMapV2Spec.js @@ -1443,7 +1443,6 @@ describe('mapboxgl_WebMapV2', () => { done(); }; datavizWebmap.on('mapcreatesucceeded', callback); - done(); }); it('updateOverlayLayer unique', (done) => {