Round image height and width for WMS
This commit is contained in:
@@ -17,8 +17,8 @@ ol.source.wms.getUrl =
|
|||||||
'REQUEST': 'GetMap',
|
'REQUEST': 'GetMap',
|
||||||
'FORMAT': 'image/png',
|
'FORMAT': 'image/png',
|
||||||
'TRANSPARENT': true,
|
'TRANSPARENT': true,
|
||||||
'WIDTH': size.width,
|
'WIDTH': Math.round(size.width),
|
||||||
'HEIGHT': size.height
|
'HEIGHT': Math.round(size.height)
|
||||||
};
|
};
|
||||||
goog.object.extend(baseParams, params);
|
goog.object.extend(baseParams, params);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user