Change resolution calculation to always be the closest resolution.

According to developers from openlayers this gives the best quality.