Florida voters have approved a measure that bans both offshore oil drilling and the use of electronic cigarettes in most enclosed workplaces.

Voters on Tuesday approved Amendment 9, one of four measures that pulled together unrelated items. The amendment bans drilling for oil or natural gas in the state’s territorial waters. That has been a major concern of both environmentalists and tourism officials, who feared a spill could ruin beaches.

The measure also bans the use of electronic cigarettes or vaping in workplaces. Exceptions are made for private homes used for businesses other than childcare, elder care or health care; stand-alone bars; designated hotel rooms; and tobacco and vape shops.

Opponents had argued that each constitutional amendment should only cover one issue. They also said a vaping ban should be handled by the Legislature.

The measure was placed on the ballot by the Florida Constitution Revision Commission, a panel chosen by the governor, legislative leaders and the Supreme Court chief justice. The commission meets every 20 years.