Google Earth API

KmlLayerRoot Interface Reference

Inheritance diagram for KmlLayerRoot:
Inheritance graph

List of all members.

Public Member Functions

KmlFolder getLayerById (string id)
void enableLayerById (string id, bool visibility)
int getDrawOrder ()
void setDrawOrder (int drawOrder)

Detailed Description

A container for the various layers displayed with the Google Earth Plug-in. It contains the same layers as Google Earth.

Member Function Documentation

Returns the layer based on the layer's ID.

void KmlLayerRoot.enableLayerById ( string  id,
bool  visibility 
)

Enables a layer based on its ID.

Parameters:
idID of layer. See the GEPlugin object reference for possible values.
visibilitySpecifies whether the feature is drawn in the 3D viewer when it is initially loaded. In order for a feature to be visible, visibility must also be set to 1.

Returns the drawing order for this database.

void KmlLayerRoot.setDrawOrder ( int  drawOrder)

Defines the drawing order for databases. Drawing order is lowest to highest. Google Earth Enterprise customers can add a side database and set the drawOrder to be either before or after that of the main database. Side databases default to a drawing order of 0.

Authentication required

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

Signing you in...

Google Developers needs your permission to do that.