We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 93ef8f3 commit 193f29aCopy full SHA for 193f29a
src/openlayers/mapping/WebMap.js
@@ -1343,17 +1343,13 @@ export class WebMap extends Observable {
1343
if (mapBounds) {
1344
return mapBounds;
1345
}
1346
- const getBoundsByResoutions = (maxResolution, origin) => {
1347
- const size = maxResolution * tileSize;
1348
- return [origin[0], origin[1] - size, origin[0] + size, origin[1]];
1349
- };
1350
-
1351
if (resolutions) {
1352
const maxResolution = resolutions.sort((a, b) => b - a)[0];
1353
- return getBoundsByResoutions(maxResolution, origin);
+ const size = maxResolution * tileSize;
+ return [origin[0], origin[1] - size, origin[0] + size, origin[1]];
1354
1355
// 兼容之前的3857全球剖分
1356
- if (this.baseProjection === 'EPSG:3857') {
+ if (this.baseProjection == 'EPSG:3857') {
1357
return [-20037508.3427892, -20037508.3427892, 20037508.3427892, 20037508.3427892];
1358
1359
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
0 commit comments