Round the DPI value in ol.source.ImageArcGISRest

This commit is contained in:
Frederic Junod
2017-02-08 13:32:57 +01:00
parent c1af0de860
commit c260e927a0
2 changed files with 3 additions and 3 deletions

View File

@@ -208,7 +208,7 @@ ol.source.ImageArcGISRest.prototype.getRequestUrl_ = function(extent, size, pixe
params['BBOX'] = extent.join(',');
params['BBOXSR'] = srid;
params['IMAGESR'] = srid;
params['DPI'] = 90 * pixelRatio;
params['DPI'] = Math.round(90 * pixelRatio);
var url = this.url_;