Add new ol.source.WMTS#getFormat api function
This commit is contained in:
@@ -46,7 +46,11 @@ ol.source.WMTS = function(options) {
|
|||||||
*/
|
*/
|
||||||
this.version_ = goog.isDef(options.version) ? options.version : '1.0.0';
|
this.version_ = goog.isDef(options.version) ? options.version : '1.0.0';
|
||||||
|
|
||||||
var format = goog.isDef(options.format) ? options.format : 'image/jpeg';
|
/**
|
||||||
|
* @private
|
||||||
|
* @type {string}
|
||||||
|
*/
|
||||||
|
this.format_ = goog.isDef(options.format) ? options.format : 'image/jpeg';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @private
|
* @private
|
||||||
@@ -96,7 +100,7 @@ ol.source.WMTS = function(options) {
|
|||||||
'Service': 'WMTS',
|
'Service': 'WMTS',
|
||||||
'Request': 'GetTile',
|
'Request': 'GetTile',
|
||||||
'Version': this.version_,
|
'Version': this.version_,
|
||||||
'Format': format
|
'Format': this.format_
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -223,6 +227,15 @@ ol.source.WMTS.prototype.getDimensions = function() {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return {string} Format.
|
||||||
|
* @api
|
||||||
|
*/
|
||||||
|
ol.source.WMTS.prototype.getFormat = function() {
|
||||||
|
return this.format_;
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @inheritDoc
|
* @inheritDoc
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user