Merge pull request #4537 from bartvde/issue-4312

Allow specifying non default DPI on ol.source.TileArcGISRest
This commit is contained in:
Bart van den Eijnden
2015-12-11 13:42:26 +01:00
2 changed files with 13 additions and 1 deletions

View File

@@ -102,7 +102,9 @@ ol.source.TileArcGISRest.prototype.getRequestUrl_ =
params['BBOX'] = tileExtent.join(',');
params['BBOXSR'] = srid;
params['IMAGESR'] = srid;
params['DPI'] = Math.round(90 * pixelRatio);
params['DPI'] = Math.round(
params['DPI'] ? params['DPI'] * pixelRatio : 90 * pixelRatio
);
var url;
if (urls.length == 1) {