So, both Isaiah and John (in Revelation) says Jerusalem is Sodom and Egypt. The Book of Zechariah is about Jerusalem being a whore. Both ancient Israel (of earthly Jerusalem) and early Christianity (God's heavenly Jerusalem) fell away into captivity to Babylon. What else is needed to understand this much about Mystical Babylon?
Isaiah compares Jerusalem to Sodom and Gomorrah. "Except the Lord of hosts had left unto us a very small remnant, we should have been as Sodom, and we should have been like unto Gomorrah." [Isa. 1:9]
I don't think the idea of Jerusalem being a "whore" is what Zechariah is about. I think it is more of a book of comfort to Jerusalem. "Cry yet, saying, Thus saith the LORD of hosts; My cities through prosperity shall yet be spread abroad; and the LORD shall yet comfort Zion, and shall yet choose Jerusalem." [Zech. 1:17]
And, behold, the angel that talked with me went forth, and another angel went out to meet him,
And said unto him, Run, speak to this young man, saying, Jerusalem shall be inhabited as towns without walls for the multitude of men and cattle therein:
For I, saith the Lord, will be unto her a wall of fire round about, and will be the glory in the midst of her.
These are promises, and words of comfort.
"For thus saith the LORD of hosts; After the glory hath he sent me unto the nations which spoiled you: for he that toucheth you toucheth the apple of his eye." [Zech. 2:8]
What verses are you referring to?
The reference to Sodom and Egypt in Revelation 11:8 refers to the world outside Jerusalem. For John, the city of Jerusalem represents the kingdom of Christ, the bride of the Lamb. The world outside is mystical Babylon. This is ideal of course; he alludes to the heavenly Jerusalem. There is a parallel in 21:27, "And there shall in no wise enter into it any thing that defileth, neither whatsoever worketh abomination, or maketh a lie: but they which are written in the Lamb's book of life." And in 22:14-15: "Blessed are they that do his commandments, that they may have right to the tree of life, and may enter in through the gates into the city. For without are dogs, and sorcerers, and whoremongers, and murderers, and idolaters, and whosoever loveth and maketh a lie."
These compare with 11:8-9: "And their dead bodies shall lie in the street of the great city, which spiritually is called Sodom and Egypt, where also our Lord was crucified. And they of the people and kindreds and tongues and nations shall see their dead bodies three days and an half, and shall not suffer their dead bodies to be put in graves."
Each of the above contrasts the holy city with the world. Jesus was crucified outside Jerusalem. Otherwise, how could the centurion standing nearby have seen the curtain of the temple? It was probably on the mount of Olives. See Hebrews 13:12.