set timeout to resize the map on init. without this, sometimes the map does not render properly