The previous way of hard-coding an offset of 1 causes an incorrect attribution for layers with a custom maxResolution.