Google Earth API

KmlDocument Interface Reference

Inheritance diagram for KmlDocument:
Inheritance graph

List of all members.

Public Member Functions

KmlObjectList getElementsByStyleUrl (string styleUrl)
GEStyleSelectorContainer getStyleSelectors ()

Detailed Description

A KmlDocument has containers that holds features and styles. This container is required if you use shared styles. It is recommended that you use shared styles, which require the following.

  • Define all Styles in a Document. Assign a unique ID to each Style.
  • Within a given feature or StyleMap, reference the Style's ID using a styleUrl element.
Note:
Shared styles are not inherited by the features in the Document.

Member Function Documentation

Returns a list of elements using a particular style URL.

Returns an array containing the style selectors present in the KML document.

Authentication required

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

Signing you in...

Google Developers needs your permission to do that.