I would display the markers added from script (not the players' labels) only if there are in the field of view. By default the display is :

In this screen the 2 markers "Goal" are above 2 poles. But as I can't see these poles, I would that these markers aren't shown for me.
I haven't found any mathod to do that. Is this possible ?