Round image height and width for WMS

This commit is contained in:
Éric Lemoine
2013-03-07 13:37:48 +01:00
parent d81d9d7411
commit b487275d5b

View File

@@ -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);