Fix the requestEncoding automatic selection

If the `requestEncoding` parameter was not provided, the function used `KVP`
but without checking if it was supported.
This commit is contained in:
Frederic Junod
2016-05-24 13:30:36 +02:00
parent f3248e9c19
commit bd0140f42d
3 changed files with 44 additions and 20 deletions

View File

@@ -30,7 +30,6 @@ fetch(capabilitiesUrl).then(function(response) {
var options = ol.source.WMTS.optionsFromCapabilities(result, {
layer: layer,
matrixSet: 'google3857',
requestEncoding: 'REST',
style: 'normal'
});
options.tilePixelRatio = tilePixelRatio;