set resolutions on layer

allow setting of resolutions, make functions for calculating resolutions in XYZ public to easily build up own resolution arrays.