Answer
That line indicates that the gym is above level 5.
It exists so that, at a glance, you can quickly tell the level of a gym just from the dots. Each dot represents a level and the crown represents one more. A filled dot is a Pokémon on the gym and the crown is the gym leader’s Pokémon.
Attribution
Source : Link , Question Author : me_and , Answer Author : KOVIKO