question: private void writePhotoOverlay ( String name , String category , String description , String styleName , Location location , String photoUrl , float heading ) { if ( location != null ) { printWriter . println ( "<PhotoOverlay>" ) ; printWriter . println ( "<name>" + StringUtils . formatCData ( name ) + "</name>" ) ; printWriter . println ( "<description>" + StringUtils . formatCData ( description ) + "</description>" ) ; printWriter . print ( "<Camera>" ) ; printWriter . print ( "<longitude>" + location . getLongitude ( ) + "</longitude>" ) ; printWriter . print ( "<latitude>" + location . getLatitude ( ) + "</latitude>" ) ; printWriter . print ( "<altitude>20</altitude>" ) ; printWriter . print ( "<heading>" + heading + "</heading>" ) ; printWriter . print ( "<tilt>90</tilt>" ) ; printWriter . println ( "</Camera>" ) ; printWriter . println ( "<TimeStamp><when>" + StringUtils . formatDateTimeIso8601 ( location . getTime ( ) ) + "</when></TimeStamp>" ) ; printWriter . println ( "<styleUrl>#" + styleName + "</styleUrl>" ) ; writeCategory ( category ) ; if ( playTrack ) { printWriter . println ( "<Icon><href>" + Uri . decode ( photoUrl ) + "</href></Icon>" ) ; } else { Uri uri = Uri . parse ( photoUrl ) ; printWriter . println ( "<Icon><href>" + KmzTrackExporter . KMZ_IMAGES_DIR + File . separatorChar + uri . getLastPathSegment ( ) + "</href></Icon>" ) ; } printWriter . print ( "<ViewVolume>" ) ; printWriter . print ( "<near>10</near>" ) ; printWriter . print ( "<leftFov>-60</leftFov>" ) ; printWriter . print ( "<rightFov>60</rightFov>" ) ; printWriter . print ( "<bottomFov>-45</bottomFov>" ) ; printWriter . print ( "<topFov>45</topFov>" ) ; printWriter . println ( "</ViewVolume>" ) ; printWriter . println ( "<Point>" ) ; printWriter . println ( "<coordinates>" + getCoordinates ( location , "," ) + "</coordinates>" ) ; printWriter . println ( "</Point>" ) ; printWriter . println ( "</PhotoOverlay>" ) ; } }
target:  Writes a photo overlay.