Allow setting the maximum zoom level. Fixes #40.