Hit detection respects min and maxResolution

This fixes the bug reported in #2106, where the hit detection code detects features that are not actually rendered because the current resolution is outside the resolution range defined on the vector layer.

Please review.

closes #2106.