max zoomin should depend on the shown range