Update lib/OpenLayers/Layer.js

Find the closest resolution based on half of the difference of 2 resolution levels