This dictionary says:
- 'the whole of' and 'whole'
When you talk about the whole of something, you mean all of it.
We were there for the whole of July.
I felt pain throughout the whole of my body.
Instead of using "the whole of" in front of a noun phrase beginning with "the", you can simply use "whole" after "the". For example, instead of saying 'The whole of the house was on fire', you can say 'The whole house was on fire'.
I spent the whole day in the library.
They're the best team in the whole world.
However, this person says
You should use 'the whole of', not 'the whole', before proper nouns and pronouns, for example, you say 'the whole of Europe', 'the whold of it', etc.
you say 'the whole of London', not 'the whole London'.
That person made me feel bad about myself because I often say "The whole London".
Check this Ngram, people do use "The whole Paris" though "The whole of Paris" is more common
& Check this Ngram, people do use "The whole London" though "The whole of London" is more common
So, is "the whole London" wrong?