Cast tileGrid to WMTSTileGrid for type check

This commit is contained in:
William Wall
2018-09-19 10:31:28 -06:00
parent 978b039ddc
commit 0994362bfe

View File

@@ -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 (