Allow olx.source.WMTSOptions#requestEncoding to be a string
This commit is contained in:
@@ -59,7 +59,8 @@ ol.source.WMTS = function(options) {
|
||||
// FIXME: should we guess this requestEncoding from options.url(s)
|
||||
// structure? that would mean KVP only if a template is not provided.
|
||||
var requestEncoding = goog.isDef(options.requestEncoding) ?
|
||||
options.requestEncoding : ol.source.WMTSRequestEncoding.KVP;
|
||||
/** @type {ol.source.WMTSRequestEncoding} */ (options.requestEncoding) :
|
||||
ol.source.WMTSRequestEncoding.KVP;
|
||||
|
||||
// FIXME: should we create a default tileGrid?
|
||||
// we could issue a getCapabilities xhr to retrieve missing configuration
|
||||
|
||||
Reference in New Issue
Block a user