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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user