set min and max zoom level for map and code for resizing of map