added code to work with zoom level 0 and 1.