BMW logo evolution

A rotating propellor? A Bavarian flag? What’s the true meaning behind the logo?