Let $P$ be a non-positively curved polygon of finite groups. The group $P$ acts on a contractible $2$-complex $\X_P$, and we prove that this complex is a building if and only if the links have (angular) diameter $\pi$. When $P$ has zero group theoretic curvature, a geometric argument shows that the periodic apartments are dense in the set of all apartments.