added support for setting a maximum zoom via zoomMax