Now generate map when button is clicked. Hacky implementation of resize - need to make better.