ROSEBURG, Ore. (AP) — So much timber money once flowed into this rural Oregon county that its leaders set up committees to find ways to spend it.

Today, Douglas County's library system is on life support, and its sheriff's department is on track to lose funding.

Nearly 30 years after environmental protections slashed logging in federal forests, Oregon counties like this one that thrived on timber revenues for decades are struggling to provide basic services. These so-called timber counties received hundreds of millions of dollars during logging's long heyday, and since then the federal government has continued to pour money in to make up for timber's downfall.

Now the money has dried up and people are reluctant to tax themselves, leaving leaders scrambling and public institutions in free fall.

Commissioners in Douglas County, which once received $50 million in annual profits from logging on federal lands, have slashed health services, cut nearly 300 jobs and started charging for landfill use and parking at parks. The county's main library will close June 1 because voters rejected a tax, and voters in nearby Josephine County must decide May 16 whether to restore limited tax dollars to libraries and fund county response to 911 calls.

Democratic U.S. Sen. Ron Wyden recently joined other Western lawmakers in a last-ditch effort to restore federal assistance — but local officials aren't optimistic.

"Most of the citizens have become accustomed to receiving that outside money, and now that that money is gone, we have to be self-sufficient — or at least more self-sufficient," Josephine County Sheriff Dave Daniel said.

Yet anti-tax sentiment is strong here, where President Donald Trump dominated in November.

Voters in these counties have rejected tax levies for public services nearly a dozen times before, including for public safety and libraries. Many residents feel county leaders are quick to come to voters and must do more to bring back timber dollars, said Jim Rafferty, who opposes raising taxes in Josephine County.

"I'm not saying that we're opposed to public safety. That's not the message," he said. "The message is for the county commissioners to roll up their sleeves and fund the sheriff when they can, rather than give us this rhetoric."

The economic spiral playing out in western Oregon is interwoven with themes that have emerged across the American West: Anger over federal land policy, debate about the limits of environmental regulation and the question of who has the right to benefit from federal lands.

Communities across the American West have long received revenues from logging on federal land, but a quirk of history made the timber wealth of more than a dozen counties in Oregon even greater — and makes their current plight unique.

These 18 timber counties stretch from Portland to the California line. They contain 3,281 square miles (8,498 square kilometers) of densely forested territory that is the central character in a tale of rapid Western expansion and century-old corruption.

The Oregon & California Railroad got the lands in the 1860s for a rail line. The project spurred growth in Oregon but also inspired large-scale land fraud that led to the indictment of a U.S. senator and two congressmen.

In the scandal's wake, the federal government in 1916 took back the land, but locals argued that cheated them of a tax base on land ripe for logging.

Federal legislation tailored to compensate the counties created a cash cow: 75 percent of the logging receipts from those lands go to the counties, with no restrictions.

During the 1980s, the U.S. Bureau of Land Management was selling 1 billion board feet (2.4 million cubic meters) of timber a year, producing so much money that some of the counties did not assess property taxes. Most also get 25 percent of timber receipts from national forests within their borders under a separate program.

But in the early 1990s, conservation groups won lawsuits to protect spotted owl and salmon habitat, and logging on federal land dropped by 90 percent. Federal dollars to ease the counties' transition has been shrinking for years and was not renewed this year.

The adjustment has been whiplash in communities where unemployment rises to 8 and 9 percent.

Kate Lasky, executive director of Josephine Community Libraries Inc., runs a nonprofit foundation that has kept the libraries open with donations and volunteers.

The May 16 ballot measure would add 39 cents per $1,000 in taxes for voters in a special district of the precincts around the library's branches. A previous county-wide levy failed.

"I have to focus on those people who want to support their community," Lasky said. "We need to do that for generations, not just for next year."

A public safety levy on the same ballot asks for 93 cents per $1,000. If that fails, residents who call 911 won't get any help from sheriff's deputies, said Daniel, the county sheriff, who handed out 17 lay-off warnings last month.

The Oregon State Police, which has been providing limited patrol coverage, says it can't help more of the measure fails.

"We're just bracing ourselves for the impact," Daniel said.

In Douglas County, officials in the 1990s realized there would be a drop-off in funding and started building up reserves, but those funds are almost gone.

"Literally, and I'm not kidding, we had committees that just sat around and figured out how to spend the money. That's no joke. That was their job," Douglas County Commissioner Gary Leif said of timber's peak.

"What I fear — what I know — is going to happen, is that we will have to go to the people and say, 'We've cut everything down to the bones. There's nowhere else to cut.'"