The Biur Halacha (229:1) writes
הרואה הקשת וכו' - לא נתבאר אם בעינן דוקא שיראהו בתמונת קשת דהוא כחצי גורן עגולה או אפילו מקצת ממנו די - It's not explained whether you need to specifically see the full half-circle [of a rainbow] or a part of it is sufficient.
Do Poskim allow one to make a beracha on seeing a portion of a rainbow but a significant percentage of it is blocked by trees or houses, or do we say safek berachos l'hakel?