TerriaJS / terriajs

A library for building rich, web-based geospatial data platforms.

Home Page:https://terria.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

WMTS tile height/width isn't pulled from Tile Matrix Set

nf-s opened this issue · comments

To reproduce

Because of nullish coalescing (??) order here:

minimumLevel: this.minimumLevel ?? tileMatrixSet.minLevel,
maximumLevel: this.maximumLevel ?? tileMatrixSet.maxLevel,
tileWidth: this.tileWidth ?? tileMatrixSet.tileWidth,
tileHeight:
this.tileHeight ?? this.minimumLevel ?? tileMatrixSet.tileHeight,

(I think there is also a mistake where this.minimumLevel is being used to set tileHeight