Skip to content

Commit 456cecb

Browse files
committed
Website updates
1 parent 5804351 commit 456cecb

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

dist/en/main/examples/common.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/examples/common.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/dist/ol.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/en/main/ol/reproj/DataTile.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,8 +376,8 @@ class ReprojDataTile extends DataTile {
376376
const size = this.targetTileGrid_.getTileSize(z);
377377
const targetWidth = typeof size === 'number' ? size : size[0];
378378
const targetHeight = typeof size === 'number' ? size : size[1];
379-
const outWidth = targetWidth * this.pixelRatio_;
380-
const outHeight = targetHeight * this.pixelRatio_;
379+
const outWidth = Math.round(targetWidth * this.pixelRatio_);
380+
const outHeight = Math.round(targetHeight * this.pixelRatio_);
381381
const targetResolution = this.targetTileGrid_.getResolution(z);
382382
const sourceResolution = this.sourceTileGrid_.getResolution(this.sourceZ_);
383383

@@ -510,7 +510,7 @@ class ReprojDataTile extends DataTile {
510510
} else {
511511
this.reprojData_ = dataR;
512512
}
513-
this.reprojSize_ = [Math.round(outWidth), Math.round(outHeight)];
513+
this.reprojSize_ = [outWidth, outHeight];
514514
this.state = TileState.LOADED;
515515
this.changed();
516516
}

0 commit comments

Comments
 (0)