338 Part IV — Google Earth Hacks
Because this is Google Earth, the overlay is of course attached to the map. If the view is
rotated or tilted, the overlay rotates and tilts with the map accordingly, as demonstrated in
Figure 17-11.
FIGURE17-11: Rotated map and overlay.
The KML generated in the preceding process shows how the image is overlaid. Unlike Google
Maps, where the TPhotoextension was used, Google Earth supports the operation directly
within the application using KML to define the structure:
<?xml version=”1.0” encoding=”UTF-8”?>
<kml xmlns=”http://earth.google.com/kml/2.0”>
<Document>
<name>New Office Layout.kmz</name>
<GroundOverlay>
<name>New Office Layout</name>
<color>77ffffff</color>
<Icon>
<href>images/ch11-overlay.png</href>
<viewBoundScale>0.75</viewBoundScale>
</Icon>
<LatLonBox>
<north>35.2838663590014</north>
<south>35.27641626890076</south>