PORTLAND, Maine — The combination of heavy rain and rising tides on Wednesday resulted in the flooding of some streets, low-lying areas and basements in the city.

Cars were nearly submerged on Franklin and Somerset streets, according to reports by WGME-TV just after noon. There also was flooding on outer Congress Street, the station reported.

The National Weather Service issued a flash flood warning for the Portland area.

Jessica Grondin, spokeswoman for the city of Portland, said most of the city’s problems are occurring in low-lying areas such as Commercial Street and Marginal Way.

She said commuters are urged to plan for extra time in getting home and to not drive through deep standing water or barricades police have put up.

“Don’t go out on the roads right now if you don’t have to,” Grondin said.

The University of Southern Maine canceled all classes after 12:30 p.m.

According to Bucksport police, Route 1 near McDonald’s is nearly impassable because of flooding. Police are advising drivers to stay off the road. The Bangor Fire Department also reported Main Street near the Interstate 395 ramps is flooded.

Bangor police have reported the area of Broadway Park, State Street by Cascade Park, Stillwater Avenue by Howard Street and the downtown I-395 ramps are all affected, with the I-395 Farm Road ramps closed.

Watch bangordailynews.com for updates.