Fix WMTS requestEncoding

This commit is contained in:
Éric Lemoine
2013-06-21 15:25:00 +02:00
parent fa4d2d485d
commit e6e98a6ca2
+1 -1
View File
@@ -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(