Merge pull request #6300 from fredj/hidpi_ImageArcGISRest
Add missing hidpi option for ol.source.ImageArcGISRest
This commit is contained in:
@@ -44,6 +44,12 @@ ol.source.ImageArcGISRest = function(opt_options) {
|
||||
this.crossOrigin_ =
|
||||
options.crossOrigin !== undefined ? options.crossOrigin : null;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {boolean}
|
||||
*/
|
||||
this.hidpi_ = options.hidpi !== undefined ? options.hidpi : true;
|
||||
|
||||
/**
|
||||
* @private
|
||||
* @type {string|undefined}
|
||||
@@ -114,6 +120,7 @@ ol.source.ImageArcGISRest.prototype.getImageInternal = function(extent, resoluti
|
||||
}
|
||||
|
||||
resolution = this.findNearestResolution(resolution);
|
||||
pixelRatio = this.hidpi_ ? pixelRatio : 1;
|
||||
|
||||
var image = this.image_;
|
||||
if (image &&
|
||||
|
||||
Reference in New Issue
Block a user