PORTLAND — Maine’s largest encampment of Wall Street protesters has agreed to a demand by the city of Portland to apply for a permit to remain in Lincoln Park.

Today’s deadline follows a stalemate in Augusta’s Capitol Park as demonstrators go to court, seeking to maintain a presence outside the State House. Occupy Augusta members agreed not to build fires or add to their encampment until a judge holds a hearing next week.

In Portland, OccupyMaine members decided to seek a permit in a vote that came days after police responded to four violent incidents around Thanksgiving.