KML uses common XML types such as boolean, string, double, float, and int. The complete XML schema for elements in this extension namespace is located at. If your browser doesn't support particular extensions, the data in those extensions should be silently ignored, and the rest of the KML file should load without errors.Įlements that currently use the gx prefix are: This namespace URI must be added to the element in any KML file using gx-prefixed elements: Įxtensions to KML may not be supported in all geo-browsers. These extensions use the gx prefix and the following namespace URI: With the launch of Google Earth 5.0, Google has provided extensions to KML to support a number of new features. The OGC KML standard provides a mechanism for extensions - additional elements that contain information beyond what is available in the standard ( learn more about XML namespaces at w3.org). KML Extension Namespace and the gx prefix The Syntax section can be copied and used as a template for any non-abstract element in a KML file.
About this referenceĮach reference entry includes a Syntax section that lists the elements contained in the main element. For this reason, if you change the namespace to "2.2" (that is, xmlns=""), all KML 2.1 files validate in the KML 2.2 schema. All versions with the same majorVersion are compatible. KML versions have a double numbering system: majorVersion.minorVersion. To view the corresponding KML for the copied object, open your favorite text editor and paste the selection into it. In Google Earth, you can right-click a Feature in the Places panel and copy it. Here is a handy feature of Google Earth that makes it easy to view the KML file for any Feature. Tip: Viewing KML for Google Earth Features
#Gx works 2 monitor local label code
When you are editing KML text files, you can load this Schema into any XML editor and validate your KML code with it. If you're familiar with XML, you will also be interested in the KML 2.2 Schema. The id is a standard XML ID.īecause KML is an XML grammar and file format, tag names are case-sensitive and must appear exactly as shown here.
#Gx works 2 monitor local label update
This id is used by the KML update mechanism (see ) for files loaded with a NetworkLink. Understanding this object-oriented hierarchy is also a good way for you to learn KML, since you can easily see groupings of related elements.Īll elements derived from Object can have an id assigned to them.
They are a useful way for a single element to serve as the programmatic foundation for multiple similar (but different) derived elements. Note that abstract elements (shown in boxes in the diagram) are not actually used in KML files. Note: Click an element name in this diagram to jump to its entry in the reference section. The complete XML schema for KML is located at. The complete specification for OGC KML can be found at. It is maintained by the Open Geospatial Consortium, Inc. KML is an open standard officially named the OpenGIS® KML Encoding Standard (OGC KML). It contains all of the elements that belong to Feature, and it adds some elements that are specific to the Placemark element. For example, Placemark is a special kind of Feature. In this diagram, elements to the right on a particular branch in the tree are extensions of the elements to their left. The class tree for KML elements is shown below.
This section contains an alphabetical reference for all KML elements defined in KML Version 2.2, as well as elements in the Google extension namespace.