Updated Map Drawing

changed to map to auto detect the right size of the canvas based on the
longest array length.