Fix WMTS layers URLs with dimensions

This commit is contained in:
Guillaume Beraudo
2018-08-13 15:02:52 +02:00
committed by Frederic Junod
parent a94dff2c06
commit 315cfa1033
2 changed files with 32 additions and 24 deletions

View File

@@ -493,6 +493,7 @@ function createFromWMTSTemplate(template) {
});
const tileGrid = this.tileGrid;
const dimensions = this.dimensions_;
return (
/**
@@ -510,7 +511,7 @@ function createFromWMTSTemplate(template) {
'TileCol': tileCoord[1],
'TileRow': -tileCoord[2] - 1
};
assign(localContext, this.dimensions_);
assign(localContext, dimensions);
let url = template;
if (requestEncoding == WMTSRequestEncoding.KVP) {
url = appendParams(url, localContext);