Google Earth API

KmlContainer Interface Reference

Inheritance diagram for KmlContainer:
Inheritance graph

List of all members.

Public Member Functions

KmlObject getElementById (string id)
KmlObject getElementByUrl (string url)
KmlObjectList getElementsByType (string type)
GEFeatureContainer getFeatures ()

Detailed Description

An abstract object and cannot be used directly. A KmlContainer object holds one or more features and allows the creation of nested hierarchies.

Member Function Documentation

Get an element by ID. This is functionally equivalent to getElementByUrl with an unspecified base URL. For example, getElementByUrl('#foo'). Usage is when finding objects created with JavaScript, which have unspecified base URLs. The object must be a descendant of the container before it can be found.

Get an element by URL. A URL consists of the base address and ID, joined with the # character. For example:

   http://www.google.com/bar.kml#here_be_monsters

This applies to objects that are fetched. In the case of plugin created objects, the URL is simply #foo. The object must be a descendant of the container before it can be found.

Get an element by type.

A collection of features, such as name, description, and so on.

Authentication required

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

Signing you in...

Google Developers needs your permission to do that.