I want to change tileSize from default 256 to 512. I am using WMS version 1.1.0 so i cannot add WIDTH and HEIGHT parameters directly to source.
There are some examples where custom tileGrid is created where we can specify tileSize. In my case it is working only if i know the resolutions
var tileGrid = new ol.tilegrid.TileGrid({ origin:ol.extent.getTopLeft(projectionExtent), resolutions:resolutions, tileSize :512 });
How to handle case when i use default resolutions (i do not specify them in view). Is there a way to retrieve the resolutions for projection before creating map? Or is there a better way to handle this kind of situation?