Google Earth API

KmlCamera Interface Reference

Inheritance diagram for KmlCamera:
Inheritance graph

List of all members.

Public Member Functions

void set (double latitude, double longitude, double altitude, KmlAltitudeModeEnum altitudeMode, double heading, double tilt, double roll)
double getLatitude ()
void setLatitude (double latitude)
double getLongitude ()
void setLongitude (double longitude)
double getAltitude ()
void setAltitude (double altitude)
double getHeading ()
void setHeading (double heading)
double getTilt ()
void setTilt (double tilt)
double getRoll ()
void setRoll (double roll)
KmlAltitudeModeEnum getAltitudeMode ()
void setAltitudeMode (KmlAltitudeModeEnum altitudeMode)

Detailed Description

Defines the camera that views the scene. This element defines the position of the camera relative to the Earth's surface as well as the viewing direction of the camera. The camera position is defined by longitude, latitude, altitude, and altitudeMode. The viewing direction of the camera is defined by heading, tilt, and roll. Camera can be a child element of any feature.

Member Function Documentation

void KmlCamera.set ( double  latitude,
double  longitude,
double  altitude,
KmlAltitudeModeEnum  altitudeMode,
double  heading,
double  tilt,
double  roll 
)

Sets the latitude, longitude, altitude, alitudeMode, heading, tilt, and roll values.

Latitude of the camera location. Degrees north or south of the Equator (0 degrees). Values range from -90 degrees to 90 degrees.

void KmlCamera.setLatitude ( double  latitude)

Latitude of the camera location. Degrees north or south of the Equator (0 degrees). Values range from -90 degrees to 90 degrees.

Longitude of the camera location. Angular distance in degrees, relative to the Prime Meridian. Values west of the Meridian range from -180 to 0 degrees. Values east of the Meridian range from 0 to 180 degrees.

void KmlCamera.setLongitude ( double  longitude)

Longitude of the camera location. Angular distance in degrees, relative to the Prime Meridian. Values west of the Meridian range from -180 to 0 degrees. Values east of the Meridian range from 0 to 180 degrees.

Distance from the earth's surface.

void KmlCamera.setAltitude ( double  altitude)

Distance from the earth's surface.

Direction (that is, North, South, East, West), in degrees. Default=0 (North). Values range from 0 to 360 degrees.

void KmlCamera.setHeading ( double  heading)

Direction (that is, North, South, East, West), in degrees. Default=0 (North). Values range from 0 to 360 degrees.

double KmlCamera.getTilt ( )

Angle between the direction of the camera position and the normal to the surface of the earth. Values range from 0 to 360 degrees. A tilt value of 0 degrees indicates viewing from directly above, 90 degrees indicates viewing along the horizon, and 180 degrees indicates viewing straight up at the sky.

void KmlCamera.setTilt ( double  tilt)

Angle between the direction of the camera position and the normal to the surface of the earth. Values range from 0 to 360 degrees. A tilt value of 0 degrees indicates viewing from directly above, 90 degrees indicates viewing along the horizon, and 180 degrees indicates viewing straight up at the sky.

double KmlCamera.getRoll ( )

Rotation, in degrees, of the camera around the Z axis. Values range from -180 to +180 degrees.

void KmlCamera.setRoll ( double  roll)

Rotation, in degrees, of the camera around the Z axis. Values range from -180 to +180 degrees.

KmlAltitudeModeEnum KmlCamera.getAltitudeMode ( )

Specifies how altitude components in the coordinates are interpreted.

void KmlCamera.setAltitudeMode ( KmlAltitudeModeEnum  altitudeMode)

Specifies how altitude components in the coordinates are interpreted.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.