If you have map contacts turned ON, then friendly ships will have Blue icons while enemy ships will have Red icons.
If you have map contacts turned OFF, then you, just like the real submariners of WWII need to get close enough to see the flag to ID where they are from.
__________________

|