Cast tileGrid to WMTSTileGrid for type check
This commit is contained in:
@@ -492,7 +492,8 @@ function createFromWMTSTemplate(template) {
|
|||||||
return (p.toLowerCase() in context) ? context[p.toLowerCase()] : m;
|
return (p.toLowerCase() in context) ? context[p.toLowerCase()] : m;
|
||||||
});
|
});
|
||||||
|
|
||||||
const tileGrid = this.tileGrid;
|
const tileGrid = /** @type {import("../tilegrid/WMTS.js").default} */ (
|
||||||
|
this.tileGrid);
|
||||||
const dimensions = this.dimensions_;
|
const dimensions = this.dimensions_;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user