The pin gets rendered in a 3D scene, and positioned via finding the difference between your current coordinates and the pins. The building stuff is so that people cannot see a pin when there should be a building in the way. I do this by using computer vision that analyses the map imagery.