View of the David Ireland House (middle corner) on Friday, November 4, 2016, in San Francisco. In its first year as a private museum, the David Ireland House has served 5,000 people on guided tours of 8, that costs $20 per person. less

View of the David Ireland House (middle corner) on Friday, November 4, 2016, in San Francisco. In its first year as a private museum, the David Ireland House has served 5,000 people on guided tours of 8, that ... more

Royisha Hearne places her ballot into an envelope after voting at the polling place at Dr. Charles R. Drew elementary school on Tuesday, November 8, 2016 in San Francisco. Hearne came in to vote but found out that she was registred to vote by mail so needed to place her ballot in the envelope. less

Royisha Hearne places her ballot into an envelope after voting at the polling place at Dr. Charles R. Drew elementary school on Tuesday, November 8, 2016 in San Francisco. Hearne came in to vote but found out ... more

Gayle Frank places her ballot into the counting machine at the polling station at Mission Presbyterian Chruch on Tuesday, November 8, 2016 in San Francisco. "Usually I walk right in and vote. I heard some places had a two hour wait. This is awesome,"said Frank. less

Gayle Frank places her ballot into the counting machine at the polling station at Mission Presbyterian Chruch on Tuesday, November 8, 2016 in San Francisco. "Usually I walk right in and vote. I heard some ... more

Giovanni Betteo (left) passes his daughter Charlotte Betteo (second from left) , 21 months, to his wife Stefanie Holcapp (partially seen holding folder on right) as they vote at the polling station at Mission Presbyterian Chruch on Tuesday, November 8, 2016 in San Francisco. less

Giovanni Betteo (left) passes his daughter Charlotte Betteo (second from left) , 21 months, to his wife Stefanie Holcapp (partially seen holding folder on right) as they vote at the polling station at Mission ... more

Latrelle Gaddies (l to r), polling inspector and Cynthia Johnson, poll worker talk while working at the polling place at Dr. Charles R. Drew elementary school on Tuesday, November 8, 2016 in San Francisco.

Latrelle Gaddies (l to r), polling inspector and Cynthia Johnson, poll worker talk while working at the polling place at Dr. Charles R. Drew elementary school on Tuesday, November 8, 2016 in San Francisco.

Did you vote in the Nov. 2016 elections? Click through for some of the biggest choices Bay Area and California voters faced this election year. In this file photo, a polling place is set up in the basement of City Hall during election day in San Francisco on Nov. 3, 2015.

Did you vote in the Nov. 2016 elections? Click through for some of the biggest choices Bay Area and California voters faced this election year. In this file photo, a polling place is set up in the basement of

After a long and contentious campaign, American voters were choosing between Donald Trump and Hillary Clinton on election day.

PRESIDENT:

After a long and contentious campaign, American voters were choosing between Donald Trump and Hillary Clinton on election day.

Photo: MANDEL NGAN, Staff

Image 55 of 70

Image 56 of 70

U.S. SENATE: The race between California Attorney General Kamala Harris, left, and Congresswoman Loretta Sanchez is the first all-Democratic race for statewide office since California voters approved a system that allows the top two finishers to advance to the general election regardless of party affiliation. In this file photo, the candidates debate on Oct. 5, 2016, in Los Angeles.

U.S. SENATE: The race between California Attorney General Kamala Harris, left, and Congresswoman Loretta Sanchez is the first all-Democratic race for statewide office since California voters approved a system

Would control the cultivation and sale of marijuana in California. In this file photo, production supervisor Joshua Ramos hangs marijuana plants to dry, at ButterBrand farms in San Francisco on Monday, Oct. 31, 2016.

PROPOSITIONS 62 AND 66: Promised sweeping changes to the Death Penalty in California. In this file photo, officials from San Quentin State Prison display the newly completed Lethal Injection Facility, on Sept. 21, 2010 in San Quentin, Calif.

PROPOSITIONS 62 AND 66: Promised sweeping changes to the Death Penalty in California. In this file photo, officials from San Quentin State Prison display the newly completed Lethal Injection Facility, on Sept.

Would tighten a set of gun-control laws recently signed by Gov. Jerry Brown and enact others that state legislators have failed to pass. In this file photo, AR-15 rounds are displayed at the offices of Scott Jackson owner of Bay Area Firearms Instruction in Burlingame on Sept. 22, 2016.

A $3.5 billion bond program to repair, replace and redesign BART’s infrastructure. In this file photo, commuters board a San Francisco-bound train at the Rockridge BART station in Oakland on Oct. 12, 2016.

San Francisco voters weighed in on five real-estate-related measures Tuesday, with returns split between propositions that had the backing of state and local real estate groups and those championed by affordable-housing proponents and progressive supervisors.

Three of the measures were aimed at changing how the city decides where affordable housing should be built, who gets to build it and what the maximum income levels should be for those hoping to live there.

With 100 percent of the precincts reporting — there were some provisional ballots outstanding — Proposition M, which would establish a housing commission to oversee responsibilities now handled by the mayor’s office, was losing 56.4 percent to 43.5 percent. It was supported by progressive Supervisor Aaron Peskin and opposed by Mayor Ed Lee.

Proposition P, which was backed by real estate interests, sought to lower the cost of producing affordable housing by requiring three bids for every publicly subsidized development. It was losing 67.3 percent to 32.7 percent.

More elections news

Voters also roundly rejected Proposition U, 64.9 percent to 35.1 percent. The measure would have raised income levels for eligibility for affordable units in market-rate developments. The measure was supported by moderate Supervisor Mark Farrell and real estate agents and opposed by the affordable-housing industry.

Meanwhile, voters backed Proposition X, Supervisor Jane Kim’s measure aimed at requiring builders to replace any arts, nonprofit or PDR (production, distribution, repair) space that is eliminated during development. The measure, an attempt to slow gentrification, was ahead 58.1 percent to 41.8 percent. “San Franciscans saw through the money and decided protecting arts, nonprofits, and working-class jobs was important to keep San Francisco vibrant and affordable,” Kim said.

Finally, in a slightly closer contest, voters backed Proposition O, which would exempt the Hunters Point Shipyard project from a 1986 measure limiting new office space that can be approved each year to 950,000 square feet. It was ahead 52.5 percent to 47.4 percent. Prop. O will allow the developer FivePoint to win approvals for up to 5.1 million square feet of office space at its Shipyard and Candlestick Point properties without competing against office projects in high-rent downtown districts.

Proponents pitched it as a way to bring jobs to Bayview-Hunters Point, one of the city’s poorest neighborhoods. “We’re just happy to be able to bring some economic vitality back to the Bayview Hunters Point,” said Bayview resident and Prop. O advocate Shamann Walton.