I don't think dogs should be kept as pets in towns and cities except as exceptions. I think the "part of the family" nonsense is what is causing this pathetic muddled thinking whereby the wellbeing of people in busy, overcrowded, under pressure, expensive areas, is being mistakenly and wrong-headedly "balanced" against the (completely non-existent) rights of dogs. I think if you want to keep a dog, and you live anywhere near anyone else at all, or want to take it into any village, town, or city, you should have to make a case for it and there should be very high bar for acceptable behaviour. Below this level, the dog gets put down.
If you have a working dog - like a blind dog - or if there is a strong social reason why you need the company, then dogs can be tolerated. But not otherwise. People will look back on how we live now and marvel that we were so stupid and filthy, like when children boggle when they find out that medieval cities used to have chamber pots emptied into the streets.
We are really struggling to manage the pressure of human populations in so many urban and suburban places. There are not enough dwellings - so many dwellings are piled up on top of and against each other so that living in them you can always hear other people and feel unacceptably crammed against strangers all the time - traffic and parking is a huge problem in so many cities - parks and open spaces so often look tired, the grass and plants are worn out from so many people walking on them, there is litter - we live like this because this is where we can make a living. Why add dogs into all this?
If you can keep a dog and it is honestly no inconvenience to anyone else, well you can have it - but you will not be in a city or a town or even a suburban area. And before you say "Oh but my dog is no inconvenience to anyone else", yes it is. they always are.