NEON-1077 Adding functionality to hide legend when not in point mode.