It doesn't have to analyze the map visually, the graphical map you see on your screen is the part that's generated locally by your device. The map data your device receives is already in vector form, which is a mathematical list of angles, line lengths etc.