This command enables and disables (toggles) the display of names for things like empires and galaxies in the map.
tweakergui draw.names