Skip to content

Commit 65dda08

Browse files
committed
Website updates
1 parent e9f389e commit 65dda08

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
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/source/GeoZarr.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -469,16 +469,15 @@ function getTileGridInfoFromAttributes(
469469
const multiscales = attributes.multiscales;
470470
const extent = attributes['spatial:bbox'];
471471
const projection = getProjection(attributes['proj:code']);
472+
const extentWidth = extent[2] - extent[0];
473+
const origin = [extent[0], extent[3]];
472474
/** @type {Array<{matrixId: string, resolution: number, origin: import("../coordinate.js").Coordinate, tileSize: import("../size.js").Size|undefined}>} */
473475
const groupInfo = [];
474476
const bandsByLevel = consolidatedMetadata ? {} : null;
475477
let fillValue;
476478
for (const groupMetadata of multiscales.layout) {
477-
//TODO Handle the complete transform (rotation and different x/y resolutions)
478-
const transform = groupMetadata['spatial:transform'];
479-
const resolution = transform[0];
480-
const origin = [transform[2], transform[5]];
481479
const matrixId = groupMetadata.asset;
480+
const resolution = extentWidth / groupMetadata['spatial:shape'][1];
482481
/** @type {import("../size.js").Size|undefined} */
483482
let tileSize;
484483
if (consolidatedMetadata) {

0 commit comments

Comments
 (0)