Skip to content

Commit 71273e3

Browse files
committed
【bug】1) webmap,解决通过iportal注册服务的4490地图,打开报错。
(reviewed by chengl)
1 parent 6290442 commit 71273e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openlayers/mapping/WebMap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ export class WebMap extends Observable {
313313
if (handleResult.action === "BrowseMap") {
314314
that.createSpecLayer(mapInfo);
315315
} else if (handleResult.action === "OpenMap") {
316-
that.baseProjection = mapInfo.projection;
316+
that.baseProjection = handleResult.newCrs ||mapInfo.projection;
317317
that.webMapVersion = mapInfo.version;
318318
that.baseLayer = mapInfo.baseLayer;
319319
// that.mapParams = {

0 commit comments

Comments
 (0)