Sunshine lured crowds to California beaches and parks on Sunday despite a statewide stay-at-home order, prompting more closures as officials announced plans to ramp up testing procedures for the coronavirus.

Santa Monica closed seaside parking lots to discourage people from visiting its famous strand, and Los Angeles was expected to do the same starting Monday in neighboring Venice Beach to curb the virus spread.

Most people on the sand took care to heed guidelines to stay 6 feet (1.8 meters) away from others. But spacing became an issue in popular areas like the Venice boardwalk, causing Los Angeles Mayor Eric Garcetti to chide visitors for being “too close together, too often.”

“The longer we do that, the more people will get sick and more people will die,” Garcetti said at an evening news conference.

Dozens of Los Angeles-area parks, trails and facilities overseen by the Mountains Recreation and Conservation Authority were closed down Sunday.

In the San Francisco Bay Area, authorities shut Drakes Beach, Agate Beach and other popular coastal spots, including Point Reyes Lighthouse and Chimney Rock Headlands.

President Donald Trump on Sunday approved a Major Disaster Declaration to assist in California’s COVID-19 preparedness and emergency response efforts. The move frees federal funds to help with mass care and emergency assistance, unemployment assistance and disaster legal services.

Trump also announced that he ordered the Federal Emergency Management Agency to ship mobile hospital centers to California, Washington and New York.

When the US Naval Ship Mercy arrives in Los Angeles, it will open 1,000 beds and become the largest hospital in the city, Garcetti said. The timing for the vessel's arrival was not announced.

The mayor said the city would launch a website this week that will direct people to centers where they can be tested for the virus. The first tests would be reserved for the “most vulnerable,” including patients showing symptoms, people 65 or older and those with underlying health conditions, the mayor said.

In neighboring Riverside County, testing began this weekend at a drive-through facility outside a minor league baseball stadium in Lake Elsinore.

Gov. Gavin Newsom's order last week that Californians should stay home to curb the pandemic in the nation's most populous state was by far the most sweeping and was followed by similar announcements in New York and Illinois.

California is one of the hardest-hit states, with more than 1,600 confirmed cases and 30 deaths as of Sunday, according to a tally by Johns Hopkins University.

Newsom has said infection rates of the COVID-19 virus are doubling every four days in some areas. He projected that millions could contract the virus in the next two months if aggressive prevention isn't taken.

Newsom ordered spending $42 million in emergency funding to allow the state to lease two hospitals — Seton Medical Center in Daly City and St. Vincent Medical Center in Los Angeles — for three months to provide care for patients with COVID-19.

The emergency fund will also be used to buy or refurbish ventilators, provide more patient transportation service and expand testing capacity at a state laboratory.

Residents have been told to keep away from others, not gather in groups and wash their hands frequently. They can go out to get food, fill prescriptions, seek medical care, care for vulnerable relatives or neighbors and get exercise, such as walking.

Gas stations, supermarkets and convenience stores were open, along with auto repair shops. Those providing essential services, such as plumbers and electricians, were still on the job. But restaurants were only delivering or providing take-out.