Google Earth API

KmlCoordArray Interface Reference

Inherits KmlObjectPartial.

List of all members.

Public Member Functions

KmlCoord get (int index)
void set (int index, KmlCoord coord)
void setLatLngAlt (int index, double latitude, double longitude, double altitude)
int pushLatLngAlt (double latitude, double longitude, double altitude)
int push (KmlObjectBase coordOrList)
KmlCoord pop ()
int unshift (KmlObjectBase coordOrList)
int unshiftLatLngAlt (double latitude, double longitude, double altitude)
KmlCoord shift ()
void reverse ()
void clear ()
int getLength ()

Detailed Description

The KmlCoordArray object defines an array of coordinates.

Member Function Documentation

KmlCoord KmlCoordArray.get ( int  index)

Returns the coordinates at the given index.

void KmlCoordArray.set ( int  index,
KmlCoord  coord 
)

Sets the coordinates at the given index..

void KmlCoordArray.setLatLngAlt ( int  index,
double  latitude,
double  longitude,
double  altitude 
)

Sets the latitude, longitude, and altitude.

int KmlCoordArray.pushLatLngAlt ( double  latitude,
double  longitude,
double  altitude 
)

Appends one or more new elements to the end of an array and returns the new length of the array.

int KmlCoordArray.push ( KmlObjectBase  coordOrList)

Appends one or more new elements to the end of an array and returns the new length of the array.

Deletes the last element of an array, decrements the array length, and returns the value that is removed.

int KmlCoordArray.unshift ( KmlObjectBase  coordOrList)

Adds an element or elements to the beginning of an array.

int KmlCoordArray.unshiftLatLngAlt ( double  latitude,
double  longitude,
double  altitude 
)

Adds an element or elements to the beginning of an array.

Removes and returns the first element of the array.

Reverses the order of the elements in the array.

Clears all of the elements in the array

Specifies the length of the index array.

Authentication required

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

Signing you in...

Google Developers needs your permission to do that.