scripts/main.js
/**
 * Create a new KmlLookAt - a position for the camera to be facing in Google Earth
 * @param {number} latitude The latitude for the LookAt to be pointing at
 * @param {number} longitude The longitude for the LookAt to be pointing at
 * @param {number} altitude The distance from the earth's surface, in meters
 * @param {KmlAltitudeModeEnum} altitudeMode How the altitude is to be interpreted; e.g. relative to the ground, relative to the sea floor, etc
 * @param {number} heading The direction for the LookAt to be facing - i.e. North South East or West. Value is in degrees (0 - 360)
 * @param {number} tilt The angle the LookAt is facing up or down; 0 - 90 degrees
 * @param {number} range The distance in meters (from the point specified by the latitude, longitude and altitude) for the LookAt to be situated at
 */
Create a new KmlLookAt - a position for the camera to be facing in Google Earth
@param {number} latitude The latitude for the LookAt to be pointing at
@param {number} longitude The longitude for the LookAt to be pointing at
@param {number} altitude The distance from the earth's surface, in meters
@param {KmlAltitudeModeEnum} altitudeMode How the altitude is to be interpreted; e.g. relative to the ground, relative to the sea floor, etc
@param {number} heading The direction for the LookAt to be facing - i.e. North South East or West. Value is in degrees (0 - 360)
@param {number} tilt The angle the LookAt is facing up or down; 0 - 90 degrees
@param {number} range The distance in meters (from the point specified by the latitude, longitude and altitude) for the LookAt to be situated at
Create a new KmlLookAt - a position for the camera to be facing in Google Earth @param { number } latitude The latitude for the LookAt to be pointing at @param { number } longitude The longitude for the LookAt to be pointing at @param { number } altitude The distance from the earth ' s surface in meters @param { KmlAltitudeModeEnum } altitudeMode How the altitude is to be interpreted ; e . g . relative to the ground relative to the sea floor etc @param { number } heading The direction for the LookAt to be facing - i . e . North South East or West . Value is in degrees ( 0 - 360 ) @param { number } tilt The angle the LookAt is facing up or down ; 0 - 90 degrees @param { number } range The distance in meters ( from the point specified by the latitude longitude and altitude ) for the LookAt to be situated at
function createAndSetNewLookAt(latitude, longitude, altitude, altitudeMode, heading, tilt, range) {
	var lookAt = ge.createLookAt('');
	lookAt.set(latitude, longitude, altitude, altitudeMode, heading, tilt, range);
	ge.getView().setAbstractView(lookAt);
}
function createAndSetNewLookAt ( latitude , longitude , altitude , altitudeMode , heading , tilt , range ) { var lookAt = ge . createLookAt ( '' ) ; lookAt . set ( latitude , longitude , altitude , altitudeMode , heading , tilt , range ) ; ge . getView ( ) . setAbstractView ( lookAt ) ; }
Create a new KmlLookAt - a position for the camera to be facing in Google Earth
 @param {number} latitude The latitude for the LookAt to be pointing at
 @param {number} longitude The longitude for the LookAt to be pointing at
 @param {number} altitude The distance from the earth's surface, in meters
 @param {KmlAltitudeModeEnum} altitudeMode How the altitude is to be interpreted; e.g.
Create a new KmlLookAt - a position for the camera to be facing in Google Earth @param { number } latitude The latitude for the LookAt to be pointing at @param { number } longitude The longitude for the LookAt to be pointing at @param { number } altitude The distance from the earth ' s surface in meters @param { KmlAltitudeModeEnum } altitudeMode How the altitude is to be interpreted ; e . g .