Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3c6b2a9

Browse files
[fix]sonar
1 parent e03cdf9 commit 3c6b2a9

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎src/openlayers/mapping/WebMap.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1353,8 +1353,7 @@ export class WebMap extends Observable {
13531353
return getBoundsByResoutions(maxResolution, origin);
13541354
}
13551355
// 兼容之前的3857全球剖分
1356-
const projection = this.baseProjection;
1357-
if (projection === 'EPSG:3857') {
1356+
if (this.baseProjection === 'EPSG:3857') {
13581357
return [-20037508.3427892, -20037508.3427892, 20037508.3427892, 20037508.3427892];
13591358
}
13601359
}
@@ -1383,7 +1382,7 @@ export class WebMap extends Observable {
13831382
const extent = [-20037508.3427892, -20037508.3427892, 20037508.3427892, 20037508.3427892];
13841383
return olTilegrid.createXYZ({ extent });
13851384
} else {
1386-
new TileGrid({ origin, resolutions, tileSize });
1385+
returnnew TileGrid({ origin, resolutions, tileSize });
13871386
}
13881387
}
13891388
/**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /