Thursday, February 07, 2013
3d Buildings in Google Maps
This is very impressive. The DTS Dallas Theological Seminary has used polygons to create the effect of 3d buildings on its campus map.
The effect is partly possible because of Google Map's 45 degree aerial view. This bird's eye view imagery is perfect for creating polygons for the roofs and the visible walls of building, which combined create the visual effect of a 3d building.
However it isn't as simple as just combining a few polygons. When the user changes the direction of the view in the 45 degree imagery the polygons will become distorted. Therefore the map developer has to create 4 different polygon image maps for each building and then use an event listener on the map to detect when a user rotates the view. When the map is rotated the building polygons for one point of view have to be removed and the correct polygons have to be loaded in their place for the new point of view.