Fix WMTS requestEncoding
This commit is contained in:
@@ -233,7 +233,7 @@ ol.source.WMTS.optionsFromCapabilities = function(wmtsCap, layer) {
|
|||||||
(l['resourceUrls']['tile'][format]);
|
(l['resourceUrls']['tile'][format]);
|
||||||
break;
|
break;
|
||||||
case 'KVP':
|
case 'KVP':
|
||||||
requestEncoding = ol.source.WMTSRequestEncoding.REST;
|
requestEncoding = ol.source.WMTSRequestEncoding.KVP;
|
||||||
urls = [];
|
urls = [];
|
||||||
goog.array.forEach(gets, function(elt, index, array) {
|
goog.array.forEach(gets, function(elt, index, array) {
|
||||||
if (elt['constraints']['GetEncoding']['allowedValues'].hasOwnProperty(
|
if (elt['constraints']['GetEncoding']['allowedValues'].hasOwnProperty(
|
||||||
|
|||||||
Reference in New Issue
Block a user