Search to find the first polygon layer