Edgartown voters easily approved $4.9 million in funding for a new town library during a lengthy annual town meeting Tuesday night.


With a gathering of 305 voters at the Old Whaling Church, town meeting members approved most of the items on the 63-article annual town meeting warrant and a 12-article special town meeting warrant.


A town operating budget of $28.3 million was approved, as was a $272,000 Massachusetts Estuaries Project study for Poucha Pond, Cape Pogue Pond, Katama Bay and Oyster Pond.


The new library funding was approved after a some debate with only two dissenting votes. Applause and whistles filled the church after the vote.


“This is the final vote. This will make the home run,” selectman and library building committee chairman Michael Donaroma told the meeting. “This is a fantastic project; I can’t explain or say in words how exciting this project really is.”


A proposal to allow the selectmen to sell the Captain Warren House, which was purchased several years ago with an eye toward expanding the current Carnegie Library, was also approved.


Most of the articles passed unanimously. There was debate over a proposal to amend the town zoning bylaws to allow substandard lots to be used for affordable housing, with the article eventually defeated amid concerns about overdevelopment and the impact on neighborhoods if substandard lots were opened up for development.


A proposal to allow mobile concession stands at South Beach was also defeated.


The meeting began with a poem from Edgartown poet laureate Steve Ewing, and moderator Philip J. Norton Jr. led the meeting, which lasted for nearly three and a half hours, with frequent bursts of humor.


One moment came as police chief Antone Bettencourt explained his $85,000 request for an emergency command center and firearms simulator at the police station (a request that was approved).


“Tony, this firearms simulator?” Mr. Norton said.


“Yes, sir?” Mr. Bettencourt responded.


“It’s a game, isn’t it,” the moderator said, drawing laughter from the audience.


The police chief played along. “It’s a very expensive Nintendo game,” he joked.