Allow specifying non default DPI on ol.source.TileArcGISRest
This commit is contained in:
1 parent
3fef07f9e9
commit
992870e2d2
2 files changed
+13
-1
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user