Skip to content

Commit d6adbf2

Browse files
committed
【fix】修复4214不出图问题,proj4>=2.7.5不需要转坐标顺序; review by songym
1 parent 185bb22 commit d6adbf2

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/common/mapping/WebMapV2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ export function createWebMapV2Extending(SuperClass, { MapManager, mapRepo }) {
191191
}
192192
} else {
193193
wkt = mapRepo.CRS.get(this.baseProjection).WKT
194-
this._defineProj4(wkt);
194+
this._defineProj4(wkt || projection);
195195
bounds = [
196196
mapInfo.extent.leftBottom.x,
197197
mapInfo.extent.leftBottom.y,

test/mapboxgl/mapping/WebMapV2Spec.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1443,7 +1443,6 @@ describe('mapboxgl_WebMapV2', () => {
14431443
done();
14441444
};
14451445
datavizWebmap.on('mapcreatesucceeded', callback);
1446-
done();
14471446
});
14481447

14491448
it('updateOverlayLayer unique', (done) => {

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy