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