Made the maximum zoom depend on the max of scaleExtent, instead of being a magic number.