changeMapSize callback now renders map differently depending on window size.