People prepare to sleep in areas marked by painted boxes on the ground of a parking lot at a makeshift camp for the homeless in Las Vegas. Officials opened part of the lot as a makeshift homeless shelter after a local shelter closed when a man staying there tested positive for the coronavirus. (AP Photo/John Locher)

LAS VEGAS (AP) — Homeless people in Las Vegas have been directed to sleep in rectangles painted on the pavement in a makeshift parking lot camp as a way to limit the spread of the coronavirus, a move that is stirring outrage by some on social media.

Former Obama administration housing chief Julian Castro suggested in a post on Twitter that the city’s homeless should be temporarily placed in empty hotel rooms.

Added actress Alyssa Milano in a tweet: “In Las Vegas, homeless people are sleeping on concrete floor of a parking lot —six feet apart—while all the hotel rooms are empty.”

The white-lined patches of pavement were created by officials in the city known for its hospitality after a homeless shelter closed when a man staying there tested positive for the coronavirus.

City officials said they decided to temporarily place the homeless in a parking lot of a multi-use facility rather than inside buildings that include a stadium, a theater, exhibit space and meeting rooms, because officials planned to reserve them for potential hospital overflow space if needed.

City spokesman Jace Radke said Tuesday that the open-air shelter was an “emergency situation” and the lot was chosen because the city already owned the property. It’s expected to be used until Friday, when the closed shelter should reopen.

“The marked squares are to help meet social distancing requirements. We’ll continue to provide this temporary respite, while practicing necessary social distancing, for anyone who is suffering from homelessness,” Radke said in an email.

The makeshift shelters come as officials in other states look to protect homeless people. In California, which has the nation’s largest homeless population, Gov. Gavin Newsom has pledged thousands of hotel rooms to help homeless people during the pandemic.

Officials in Nevada have not proposed putting the homeless in vacant hotels, including the famous casino resorts of the Las Vegas Strip, which began emptying two weeks ago when Gov. Steve Sisolak ordered a monthlong halt to gambling and closure of casinos. The resorts were allowed to keep their hotels open to avoid displacing guests or for emergency purposes, but all of them have since closed those operations too, according to Las Vegas Convention and Visitors Authority spokeswoman Erica Johnson.

Tim Burch, Clark County human services administrator, said Tuesday that officials have been asking hotel and motel owners to allow use of their buildings. “That has been our plan since day one,” he said.

He said the county has been looking for hotel owners who would offer their facilities because the goal is to provide a room and restroom for every person “so they can isolate the same way you and I can in our homes.”

The governor’s office did not respond to an emailed inquiry asking if Sioslak was considering asking hotels to open their rooms to the homeless.

There are about 5,500 homeless people in and around Las Vegas, a metropolitan area that has an estimated population of about 2.3 million people.

The city and county announced Tuesday that it had begun building a 350-bed complex of tents at the same facility for homeless people who have been exposed to the virus, those who have the virus but show no symptoms or those who are recovering but still need to be monitored by a nurse. The facility will offer those who don’t need to be hospitalized a place be quarantined or isolated, with access to drinking water, restrooms, meals and other services.

At at least 26 people have died from the coronavirus in Nevada. More than 1,000 people in the state have been diagnosed with the COVID-19 respiratory disease.

Most people with the virus experience mild or moderate fever and coughing that clear up in two to three weeks. Some, especially older adults and people with existing health problems, can face severe illness, including pneumonia and death.