KML Reference
KML Reference
Search
This page has moved to Google Developers. Welcome! Learn more Dismiss
Home
Products
Events
Showcase
Live
Groups
KML Reference
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. The class tree for KML elements is shown below. In this diagram, elements to the right on a particular branch in the tree are extensions of the elements to their left. For example, Placemark is a special kind of Feature. It contains all of the elements that belong to Feature, and it adds some elements that are specific to the Placemark element. KML is an open standard officially named the OpenGIS KML Encoding Standard (OGC KML). It is maintained by the Open Geospatial Consortium, Inc. (OGC). The complete specification for OGC KML can be found at http://www.opengeospatial.org/standards/kml/.
gx:delayedStart Delete description displayMode displayName Document drawOrder gx:drawOrder gx:duration east end expires ExtendedData extrude Feature fill gx:FlyTo gx:flyToMode flyToView Folder Geometry gridOrigin GroundOverlay gx:h heading gx:horizFov hotSpot href httpQuery Icon IconStyle ImagePyramid innerBoundaryIs gx:interpolate ItemIcon key kml labelColor LabelStyle gx:labelVisibility latitude LatLonAltBox LatLonBox gx:LatLonQuad
All elements derived from Object can have an id assigned to them. This id is used by the KML update mechanism (see <Update>) for files loaded with a NetworkLink. It is also used by shared styles (see <Style>). The id is a standard XML ID. Because KML is an XML grammar and file format, tag names are case-sensitive and must appear exactly as shown here. If you're familiar with XML, you will also be interested in the KML 2.2 Schema. When you are editing KML text files, you can load this Schema into any XML editor and validate your KML code with it. Tip: Viewing KML for Google Earth Features Here is a handy feature of Google Earth that makes it easy to view the KML file for any Feature. In Google Earth, you can rightclick a Feature in the Places panel and copy it. To view the corresponding KML for the copied object, open your favorite text editor and paste the selection into it. Compatibility KML versions have a double numbering system: m a j o r V e r s i o n . m i n o r V e r s i o n . All versions with the same m a j o r V e r s i o nare compatible. For this reason, if you change the namespace to "2.2" (that is, x m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " ), all KML 2.1 files validate in the KML 2.2 schema.
leftFov LinearRing LineString LineStyle Link linkDescription linkName linkSnippet listItemType ListStyle Location Lod longitude LookAt maxAltitude maxFadeExtent maxHeight maxLodPixels maxSessionLength maxWidth message minAltitude minFadeExtent minLodPixels minRefreshPeriod Model MultiGeometry gx:MultiTrack name near NetworkLink NetworkLinkControl north Object open gx:option Orientation outerBoundaryIs gx:outerColor gx:outerWidth outline Overlay overlayXY Pair
gx:labelVisibility gx:LatLonQuad gx:MultiTrack gx:vieweroptions gx:outerColor gx:outerWidth gx:physicalWidth gx:Playlist gx:playMode gx:SoundCue gx:TimeSpan gx:TimeStamp gx:Tour gx:TourControl gx:TourPrimitive gx:Track gx:ViewerOptions gx:w gx:Wait gx:x gx:y The complete XML schema for elements in this extension namespace is located at http://developers.google.com/kml/schema/kml22gx.xsd.
KML fields
KML uses common XML types such as boolean, string, double, float, and int. In addition, it defines a number of field element types. The following table lists some of the most commonly used types defined in KML and links to sample elements that use them:
Field Type altitudeModeEnum angle90 anglepos90 angle180 angle360 color colorModeEnum dateTime displayModeEnum gridOrigin refreshModeEnum shapeEnum styleStateEnum unitsEnum vec2
Value clampToGround, relativeToGround, absolute a value 90 and 90 a value 0 and 90 a value 180 and 180 a value 360 and 360 hexBinary value: aabbggrr normal, random dateTime, date, gYearMonth, gYear default, hide lowerLeft, upperLeft onChange, onInterval, onExpire rectangle, cylinder, sphere normal, highlight fraction, pixels, insetPixels x= double xunits= k ml:unitsEnum y= double yunits= k ml:unitsEnum
Example Use See <LookAt> and <Region> See <latitude> in <Model> See <tilt> in <LookAt> See <longitude> in <Model> See <heading> in <Orientation> See any element that extends <ColorStyle> See any element that extends <ColorStyle> See <TimeSpan> and <TimeStamp> See <BalloonStyle> See <PhotoOverlay> See <Link> See <PhotoOverlay> See <StyleMap> See <hotSpot> in <IconStyle>, <ScreenOverlay> See <hotSpot> in <IconStyle>, <ScreenOverlay> See <Link>
viewRefreshEnum
phoneNumber PhotoOverlay gx:physicalWidth Placemark gx:Playlist gx:playMode Point Polygon PolyStyle range refreshInterval refreshMode refreshVisibility Region ResourceMap rightFov roll rotation rotationXY Scale scale Schema SchemaData ScreenOverlay screenXY shape simpleData SimpleField size Snippet gx:SoundCue south state Style StyleMap StyleSelector styleUrl targetHref tessellate text textcolor tileSize tilt TimePrimitive
<AbstractView>
Syntax
< ! -a b s t r a c te l e m e n t ;d on o tc r e a t e> < ! -A b s t r a c t V i e w> < ! -e x t e n d sO b j e c t> < T i m e P r i m i t i v e > . . . < / T i m e P r i m i t i v e > < g x : V i e w e r O p t i o n s > < g x : o p t i o nn a m e = " "e n a b l e d = b o o l e a n/ >
< ! -C a m e r a ,L o o k A t> < ! -g x : T i m e S p a no rg x : T i m e S t a m p> < ! -n a m e = " s t r e e t v i e w " , " h i s t o r i c a l i m a g e r y " , o r" s u n l i g h t ">
Description
This is an abstract element and cannot be used directly in a KML file. This element is extended by the <Camera> and <LookAt> elements.
Extends
<Object>
Extended By
<Camera> <LookAt>
<gx:altitudeMode>
This element is an extension of the OGC KML 2.2 standard and is supported in Google Earth 5.0 and later. Learn more
Syntax
< g x : a l t i t u d e M o d e > c l a m p T o G r o u n d < / g x : a l t i t u d e M o d e > < ! -g x : a l t i t u d e M o d e E n u m :r e l a t i v e T o S e a F l o o r ,c l a m p T o S e a F l o o r ,r e l a t i v e T o G r o u n d ,c l a m p T o G r o u n d ,
Description
Can be used instead of the OGC KML standard < a l t i t u d e M o d e >element, and accepts the following values in addition to the standard altitudeMode values: relativeToSeaFloor - Interprets the altitude as a value in meters above the sea floor. If the KML feature is above land
TimeSpan gx:TimeSpan TimeStamp gx:TimeStamp topFov gx:Tour gx:TourControl gx:TourPrimitive gx:Track Update Url value viewBoundScale gx:ViewerOptions viewFormat viewRefreshMode viewRefreshTime ViewVolume visibility gx:w gx:Wait west when width gx:x gx:y
rather than sea, the altitude will be interpreted as being above the ground. clampToSeaFloor - The altitude specification is ignored, and the KML feature will be positioned on the sea floor. If the KML feature is on land rather than at sea, clampToSeaFloor will instead clamp to ground. As with < a l t i t u d e M o d e > ,< g x : a l t i t u d e M o d e >affects: the altitude coordinate within the < c o o r d i n a t e s >element < m i n A l t i t u d e >and < m a x A l t i t u d e >within < L a t L o n A l t B o x > < a l t i t u d e >within < L o c a t i o n > ,< G r o u n d O v e r l a y > , and A b s t r a c t V i e w(< L o o k A t >and < C a m e r a > ). More information about altitude modes is available in the Altitude Modes chapter of the KML Developer's Guide .
Example
altitudemode_reference.kml < ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " x m l n s : g x = " h t t p : / / w w w . g o o g l e . c o m / k m l / e x t / 2 . 2 " >
< ! -r e q u i r e dw h e nu s i n gg x p r e f i x e de l e m e n t s>
< P l a c e m a r k > < n a m e > g x : a l t i t u d e M o d eE x a m p l e < / n a m e > < L o o k A t > < l o n g i t u d e > 1 4 6 . 8 0 6 < / l o n g i t u d e > < l a t i t u d e > 1 2 . 2 1 9 < / l a t i t u d e > < h e a d i n g > 6 0 < / h e a d i n g > < t i l t > 7 0 < / t i l t > < r a n g e > 6 3 0 0 < / r a n g e > < g x : a l t i t u d e M o d e > r e l a t i v e T o S e a F l o o r < / g x : a l t i t u d e M o d e > < / L o o k A t > < L i n e S t r i n g > < e x t r u d e > 1 < / e x t r u d e > < g x : a l t i t u d e M o d e > r e l a t i v e T o S e a F l o o r < / g x : a l t i t u d e M o d e > < c o o r d i n a t e s > 1 4 6 . 8 2 5 , 1 2 . 2 3 3 , 4 0 0 1 4 6 . 8 2 0 , 1 2 . 2 2 2 , 4 0 0 1 4 6 . 8 1 2 , 1 2 . 2 1 2 , 4 0 0 1 4 6 . 7 9 6 , 1 2 . 2 0 9 , 4 0 0 1 4 6 . 7 8 8 , 1 2 . 2 0 5 , 4 0 0 < / c o o r d i n a t e s > < / L i n e S t r i n g > < / P l a c e m a r k > < / k m l >
<gx:AnimatedUpdate>
This element is an extension of the OGC KML 2.2 standard and is supported in Google Earth 5.0 and later. Learn more
Syntax
< g x : A n i m a t e d U p d a t ei d = " I D " > < g x : d u r a t i o n > 0 . 0 < / g x : d u r a t i o n > < U p d a t e > < t a r g e t H r e f > . . . < / t a r g e t H r e f >
< C h a n g e > . . . < / C h a n g e > < C r e a t e > . . . < / C r e a t e > < D e l e t e > . . . < / D e l e t e > < / U p d a t e > < g x : d e l a y e d S t a r t > 0 < / g x : d e l a y e d S t a r t > < ! -d o u b l e ,s p e c i f i e st i m ei ns e c o n d s>
< / g x : A n i m a t e d U p d a t e >
Description
< g x : A n i m a t e d U p d a t e >controls changes during a tour to KML features, using < U p d a t e > . Changes to KML features will not modify the DOM - that is, any changes will be reverted when the tour is over, and will not be saved in the KML at any time. < g x : A n i m a t e d U p d a t e >should also contain a < g x : d u r a t i o n >value to specify the length of time in seconds over which the update takes place. Integer, float, and color fields are smoothly animated from original to new value across the duration; boolean, string, and other values that don't lend to interpolation are updated at the end of the duration. Refer to Tour timelines in the Touring chapter of the KML Developer's Guide for information about < g x : A n i m a t e d U p d a t e > and the tour timeline. <gx:duration> Specifies the length of time, in seconds, over which the update takes place. <gx:delayedStart> Specifies the number of seconds to wait (after the inline start position) before starting the update.
Example
The example below demonstrates a change in icon size. This change will be animated over a 5-second duration. animatedupdate_example.kml < ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " x m l n s : g x = " h t t p : / / w w w . g o o g l e . c o m / k m l / e x t / 2 . 2 " > < D o c u m e n t > < n a m e > g x : A n i m a t e d U p d a t ee x a m p l e < / n a m e > < S t y l ei d = " p u s h p i n " > < I c o n S t y l ei d = " m y s t y l e " > < I c o n > < h r e f > h t t p : / / m a p s . g o o g l e . c o m / m a p f i l e s / k m l / p u s h p i n / y l w p u s h p i n . p n g < / h r e f > < s c a l e > 1 . 0 < / s c a l e > < / I c o n > < / I c o n S t y l e > < / S t y l e > < P l a c e m a r ki d = " m o u n t a i n p i n 1 " > < n a m e > P i no nam o u n t a i n t o p < / n a m e > < s t y l e U r l > # p u s h p i n < / s t y l e U r l > < P o i n t > < c o o r d i n a t e s > 1 7 0 . 1 4 3 5 5 5 8 7 7 1 0 0 9 , 4 3 . 6 0 5 0 5 7 4 1 8 9 0 3 9 6 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < g x : T o u r > < n a m e > P l a ym e ! < / n a m e > < g x : P l a y l i s t > < g x : F l y T o > < g x : f l y T o M o d e > b o u n c e < / g x : f l y T o M o d e > < g x : d u r a t i o n > 3 < / g x : d u r a t i o n > < C a m e r a > < l o n g i t u d e > 1 7 0 . 1 5 7 < / l o n g i t u d e > < l a t i t u d e > 4 3 . 6 7 1 < / l a t i t u d e > < a l t i t u d e > 9 7 0 0 < / a l t i t u d e > < h e a d i n g > 6 . 3 3 3 < / h e a d i n g > < t i l t > 3 3 . 5 < / t i l t > < / C a m e r a > < / g x : F l y T o >
< g x : A n i m a t e d U p d a t e > < g x : d u r a t i o n > 5 < / g x : d u r a t i o n > < U p d a t e > < t a r g e t H r e f > < / t a r g e t H r e f > < C h a n g e > < I c o n S t y l et a r g e t I d = " m y s t y l e " > < s c a l e > 1 0 . 0 < / s c a l e > < / I c o n S t y l e > < / C h a n g e > < / U p d a t e > < / g x : A n i m a t e d U p d a t e > < g x : W a i t > < g x : d u r a t i o n > 5 < / g x : d u r a t i o n > < / g x : W a i t > < / g x : P l a y l i s t > < / g x : T o u r > < / D o c u m e n t > < / k m l >
Extends
<gx:TourPrimitive>
Contains
<gx:duration> <Update>
<BalloonStyle>
Syntax
< B a l l o o n S t y l ei d = " I D " > < ! -s p e c i f i ct oB a l l o o n S t y l e> < b g C o l o r > f f f f f f f f < / b g C o l o r > < t e x t C o l o r > f f 0 0 0 0 0 0 < / t e x t C o l o r > < t e x t > . . . < / t e x t > < d i s p l a y M o d e > d e f a u l t < / d i s p l a y M o d e > < / B a l l o o n S t y l e >
Description
Specifies how the description balloon for placemarks is drawn. The <bgColor>, if specified, is used as the background color of the balloon. See < Feature> for a diagram illustrating how the default description balloon appears in Google Earth.
Text displayed in the balloon. If no text is specified, Google Earth draws the default balloon (with the Feature <name> in boldface, the Feature <description>, links for driving directions, a white background, and a tail that is attached to the point coordinates of the Feature, if specified). You can add entities to the <text> tag using the following format to refer to a child element of Feature: $[name], $[description], $[address], $[id], $[Snippet]. Google Earth looks in the current Feature for the corresponding string entity and substitutes that information in the balloon. To include To here - From here driving directions in the balloon, use the $[geDirections] tag. To prevent the driving directions links from appearing in a balloon, include the <text> element with some content, or with $[description] to substitute the basic Feature <description>. For example, in the following KML excerpt, $[name] and $[description] fields will be replaced by the <name> and <description> fields found in the Feature elements that use this BalloonStyle: < t e x t > T h i si s$ [ n a m e ] ,w h o s ed e s c r i p t i o ni s : < b r / > $ [ d e s c r i p t i o n ] < / t e x t > <displayMode> If <displayMode> is default, Google Earth uses the information supplied in <text> to create a balloon . If <displayMode> is hide, Google Earth does not display the balloon. In Google Earth, clicking the List View icon for a Placemark whose balloon's <displayMode> is hide causes Google Earth to fly to the Placemark.
Example
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < D o c u m e n t > < n a m e > B a l l o o n S t y l e . k m l < / n a m e > < o p e n > 1 < / o p e n > < S t y l ei d = " e x a m p l e B a l l o o n S t y l e " > < B a l l o o n S t y l e > < ! -ab a c k g r o u n dc o l o rf o rt h eb a l l o o n> < b g C o l o r > f f f f f f b b < / b g C o l o r > < ! -s t y l i n go ft h eb a l l o o nt e x t> < t e x t > < ! [ C D A T A [ < b > < f o n tc o l o r = " # C C 0 0 0 0 "s i z e = " + 3 " > $ [ n a m e ] < / f o n t > < / b > < b r / > < b r / > < f o n tf a c e = " C o u r i e r " > $ [ d e s c r i p t i o n ] < / f o n t > < b r / > < b r / > E x t r at e x tt h a tw i l la p p e a ri nt h ed e s c r i p t i o nb a l l o o n < b r / > < b r / > < ! -i n s e r tt h et o / f r o mh y p e r l i n k s> $ [ g e D i r e c t i o n s ] ] ] > < / t e x t > < / B a l l o o n S t y l e > < / S t y l e > < P l a c e m a r k > < n a m e > B a l l o o n S t y l e < / n a m e > < d e s c r i p t i o n > A ne x a m p l eo fB a l l o o n S t y l e < / d e s c r i p t i o n > < s t y l e U r l > # e x a m p l e B a l l o o n S t y l e < / s t y l e U r l > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 7 0 5 3 3 , 3 7 . 8 2 3 8 4 2 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < / D o c u m e n t > < / k m l >
Extends
< ColorStyle>
Contained By
<Style> Back to top
<gx:balloonVisibility>
This element is an extension of the OGC KML 2.2 standard and is supported in Google Earth 5.0 and later. Learn more
Syntax
< g x : b a l l o o n V i s i b i l i t y > 0 < / g x : b a l l o o n V i s i b i l i t y > < ! -0( n o tv i s i b l e )o r1( v i s i b l e )>
Description
Toggles visibility of a description balloon. The balloon to be updated must be identified by the object's XML ID (e.g. < P l a c e m a r kt a r g e t I d = " x x x " > ).
Examples
The first example shows < g x : b a l l o o n V i s i b i l i t y >with a Placemark. When the placemark is loaded, the description balloon is opened. balloonvisibility_example.kml < ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " x m l n s : g x = " h t t p : / / w w w . g o o g l e . c o m / k m l / e x t / 2 . 2 " > < P l a c e m a r k > < n a m e > E i f f e lT o w e r < / n a m e > < d e s c r i p t i o n > L o c a t e di nP a r i s ,F r a n c e . T h i sd e s c r i p t i o nb a l l o o no p e n s w h e nt h eP l a c e m a r ki sl o a d e d . < / d e s c r i p t i o n > < g x : b a l l o o n V i s i b i l i t y > 1 < / g x : b a l l o o n V i s i b i l i t y > < P o i n t > < c o o r d i n a t e s > 2 . 2 9 4 7 8 5 , 4 8 . 8 5 8 0 9 3 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < / k m l > The second example shows the use of < g x : b a l l o o n V i s i b i l i t y >within a tour. A number of balloons are opened and closed during the tour, providing information to the viewer. balloonvisibility_tourexample.kml < ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " x m l n s : g x = " h t t p : / / w w w . g o o g l e . c o m / k m l / e x t / 2 . 2 " > < D o c u m e n t > < n a m e > b a l l o o n V i s i b i l i t yE x a m p l e < / n a m e > < o p e n > 1 < / o p e n > < g x : T o u r > < n a m e > P l a ym e < / n a m e > < g x : P l a y l i s t > < g x : F l y T o > < g x : d u r a t i o n > 8 . 0 < / g x : d u r a t i o n > < g x : f l y T o M o d e > b o u n c e < / g x : f l y T o M o d e > < L o o k A t > < l o n g i t u d e > 1 1 9 . 7 4 8 5 8 4 < / l o n g i t u d e > < l a t i t u d e > 3 3 . 7 3 6 2 6 6 < / l a t i t u d e > < a l t i t u d e > 0 < / a l t i t u d e > < h e a d i n g > 9 . 2 9 5 9 2 6 < / h e a d i n g >
< t i l t > 8 4 . 0 9 5 7 4 5 0 < / t i l t > < r a n g e > 4 4 6 9 . 8 5 0 4 1 4 < / r a n g e > < g x : a l t i t u d e M o d e > r e l a t i v e T o S e a F l o o r < / g x : a l t i t u d e M o d e > < / L o o k A t > < / g x : F l y T o > < g x : A n i m a t e d U p d a t e > < g x : d u r a t i o n > 0 . 0 < / g x : d u r a t i o n > < U p d a t e > < t a r g e t H r e f / > < C h a n g e > < P l a c e m a r kt a r g e t I d = " u n d e r w a t e r 1 " > < g x : b a l l o o n V i s i b i l i t y > 1 < / g x : b a l l o o n V i s i b i l i t y > < / P l a c e m a r k > < / C h a n g e > < / U p d a t e > < / g x : A n i m a t e d U p d a t e > < g x : W a i t > < g x : d u r a t i o n > 4 . 0 < / g x : d u r a t i o n > < / g x : W a i t > < g x : A n i m a t e d U p d a t e > < g x : d u r a t i o n > 0 . 0 < / g x : d u r a t i o n > < U p d a t e > < t a r g e t H r e f / > < C h a n g e > < P l a c e m a r kt a r g e t I d = " u n d e r w a t e r 1 " > < g x : b a l l o o n V i s i b i l i t y > 0 < / g x : b a l l o o n V i s i b i l i t y > < / P l a c e m a r k > < / C h a n g e > < / U p d a t e > < / g x : A n i m a t e d U p d a t e > < g x : F l y T o > < g x : d u r a t i o n > 3 < / g x : d u r a t i o n > < g x : f l y T o M o d e > s m o o t h < / g x : f l y T o M o d e > < L o o k A t > < l o n g i t u d e > 1 1 9 . 7 8 2 6 3 0 < / l o n g i t u d e > < l a t i t u d e > 3 3 . 8 6 2 8 5 5 < / l a t i t u d e > < a l t i t u d e > 0 < / a l t i t u d e > < h e a d i n g > 9 . 3 1 4 8 5 8 < / h e a d i n g > < t i l t > 8 4 . 1 1 7 3 1 7 < / t i l t > < r a n g e > 6 7 9 2 . 6 6 5 5 4 0 < / r a n g e > < g x : a l t i t u d e M o d e > r e l a t i v e T o S e a F l o o r < / g x : a l t i t u d e M o d e > < / L o o k A t > < / g x : F l y T o > < g x : A n i m a t e d U p d a t e > < g x : d u r a t i o n > 0 . 0 < / g x : d u r a t i o n > < U p d a t e > < t a r g e t H r e f / > < C h a n g e > < P l a c e m a r kt a r g e t I d = " u n d e r w a t e r 2 " > < g x : b a l l o o n V i s i b i l i t y > 1 < / g x : b a l l o o n V i s i b i l i t y > < / P l a c e m a r k > < / C h a n g e > < / U p d a t e > < / g x : A n i m a t e d U p d a t e > < g x : W a i t > < g x : d u r a t i o n > 4 . 0 < / g x : d u r a t i o n > < / g x : W a i t > < g x : A n i m a t e d U p d a t e > < g x : d u r a t i o n > 0 . 0 < / g x : d u r a t i o n > < U p d a t e > < t a r g e t H r e f / > < C h a n g e >
< P l a c e m a r kt a r g e t I d = " u n d e r w a t e r 2 " > < g x : b a l l o o n V i s i b i l i t y > 0 < / g x : b a l l o o n V i s i b i l i t y > < / P l a c e m a r k > < / C h a n g e > < / U p d a t e > < / g x : A n i m a t e d U p d a t e > < g x : F l y T o > < g x : d u r a t i o n > 3 < / g x : d u r a t i o n > < g x : f l y T o M o d e > s m o o t h < / g x : f l y T o M o d e > < L o o k A t > < l o n g i t u d e > 1 1 9 . 8 4 9 5 7 8 < / l o n g i t u d e > < l a t i t u d e > 3 3 . 9 6 8 5 1 5 < / l a t i t u d e > < a l t i t u d e > 0 < / a l t i t u d e > < h e a d i n g > 1 7 3 . 9 4 8 9 3 5 < / h e a d i n g > < t i l t > 2 3 . 0 6 3 3 9 2 < / t i l t > < r a n g e > 3 7 3 3 . 6 6 6 0 2 3 < / r a n g e > < a l t i t u d e M o d e > r e l a t i v e T o G r o u n d < / a l t i t u d e M o d e > < / L o o k A t > < / g x : F l y T o > < g x : A n i m a t e d U p d a t e > < g x : d u r a t i o n > 0 . 0 < / g x : d u r a t i o n > < U p d a t e > < t a r g e t H r e f / > < C h a n g e > < P l a c e m a r kt a r g e t I d = " o n l a n d " > < g x : b a l l o o n V i s i b i l i t y > 1 < / g x : b a l l o o n V i s i b i l i t y > < / P l a c e m a r k > < / C h a n g e > < / U p d a t e > < / g x : A n i m a t e d U p d a t e > < g x : W a i t > < g x : d u r a t i o n > 4 . 0 < / g x : d u r a t i o n > < / g x : W a i t > < / g x : P l a y l i s t > < / g x : T o u r > < P l a c e m a r ki d = " u n d e r w a t e r 1 " > < n a m e > U n d e r w a t e ro f ft h eC a l i f o r n i aC o a s t < / n a m e > < d e s c r i p t i o n > T h et o u rb e g i n sn e a rt h eS a n t aC r u zC a n y o n , o f ft h ec o a s to fC a l i f o r n i a ,U S A . < / d e s c r i p t i o n > < P o i n t > < g x : a l t i t u d e M o d e > c l a m p T o S e a F l o o r < / g x : a l t i t u d e M o d e > < c o o r d i n a t e s > 1 1 9 . 7 4 9 5 3 1 , 3 3 . 7 1 5 0 5 9 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < P l a c e m a r ki d = " u n d e r w a t e r 2 " > < n a m e > S t i l ls w i m m i n g . . . < / n a m e > < d e s c r i p t i o n > W e ' r ea b o u tt ol e a v et h eo c e a n ,a n dv i s i tt h ec o a s t . . . < / d e s c r i p t i o n > < P o i n t > < g x : a l t i t u d e M o d e > c l a m p T o S e a F l o o r < / g x : a l t i t u d e M o d e > < c o o r d i n a t e s > 1 1 9 . 7 7 9 5 5 0 , 3 3 . 8 2 9 2 6 8 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < P l a c e m a r ki d = " o n l a n d " > < n a m e > T h ee n d < / n a m e > < d e s c r i p t i o n > < ! [ C D A T A [ T h ee n do fo u rs i m p l et o u r . U s e< g x : b a l l o o n V i s i b i l i t y > 1 < / g x : b a l l o o n V i s i b i l i t y > t os h o wd e s c r i p t i o nb a l l o o n s . ] ] > < / d e s c r i p t i o n > < P o i n t >
Extends
<Feature>
<Camera>
Syntax
< C a m e r ai d = " I D " > < ! -i n h e r i t e df r o mA b s t r a c t V i e we l e m e n t>
< T i m e P r i m i t i v e > . . . < / T i m e P r i m i t i v e > < ! -g x : T i m e S p a no rg x : T i m e S t a m p> < g x : V i e w e r O p t i o n s > < o p t i o n >n a m e = ""t y p e = " b o o l e a n " > < ! -n a m e = " s t r e e t v i e w " ," h i s t o r i c a l i m a g e r y " ," s u n l i g h t " ,o r" < / o p t i o n > < / g x : V i e w e r O p t i o n s > < ! -s p e c i f i ct oC a m e r a> < l o n g i t u d e > 0 < / l o n g i t u d e > < ! -k m l : a n g l e 1 8 0> < l a t i t u d e > 0 < / l a t i t u d e > < ! -k m l : a n g l e 9 0> < a l t i t u d e > 0 < / a l t i t u d e > < ! -d o u b l e> < h e a d i n g > 0 < / h e a d i n g > < ! -k m l : a n g l e 3 6 0> < t i l t > 0 < / t i l t > < ! -k m l : a n g l e p o s 1 8 0> < r o l l > 0 < / r o l l > < ! -k m l : a n g l e 1 8 0> < a l t i t u d e M o d e > c l a m p T o G r o u n d < / a l t i t u d e M o d e > < ! -k m l : a l t i t u d e M o d e E n u m :r e l a t i v e T o G r o u n d ,c l a m p T o G r o u n d ,o ra b s o l u t e> < ! -o r ,g x : a l t i t u d e M o d ec a nb es u b s t i t u t e d :c l a m p T o S e a F l o o r ,r e l a t i v e T o S e a F l o o r> < / C a m e r a >
Description
Defines the virtual camera that views the scene. This element defines the position of the camera relative to the Earth's surface as well as the viewing direction of the camera. The camera position is defined by <longitude>, <latitude>, <altitude>, and either <altitudeMode> or <gx:altitudeMode>. The viewing direction of the camera is defined by <heading>, <tilt>, and <roll>. <Camera> can be a child element of any Feature or of <NetworkLinkControl>. A parent element cannot contain both a <Camera> and a <LookAt> at the same time. <Camera> provides full six-degrees-of-freedom control over the view, so you can position the Camera in space and then rotate it around the X, Y, and Z axes. Most importantly, you can tilt the camera view so that you're looking above the horizon into the sky. <Camera> can also contain a TimePrimitive (<gx:TimeSpan> or <gx:TimeStamp>). Time values in Camera affect historical imagery, sunlight, and the display of time-stamped features. For more information, read Time with AbstractViews in the Time and Animation chapter of the Developer's Guide.
Defining a View
Within a Feature or <NetworkLinkControl>, use either a <Camera> or a <LookAt> object (but not both in the same object). The <Camera> object defines the viewpoint in terms of the viewer's position and orientation. The <Camera> object allows you to specify a view that is not on the Earth's surface. The <LookAt> object defines the viewpoint in terms of what is being viewed. The <LookAt> object is more limited in scope than <Camera> and generally requires that the view direction intersect the Earth's surface. The following diagram shows the X, Y, and Z axes, which are attached to the virtual camera.
The X axis points toward the right of the camera and is called the right vector. The Y axis defines the "up" direction relative to the screen and is called the up vector. The Z axis points from the center of the screen toward the eye point. The camera looks down the Z axis, which is called the view vector.
Order of Transformations
The order of rotation is important. By default, the camera is looking straight down the Z axis toward the Earth. Before rotations are performed, the camera is translated along the Z axis to <altitude>. The order of transformations is as follows: 1. <altitude> - translate along the Z axis to <altitude> 2. <heading> - rotate around the Z axis. 3. <tilt> - rotate around the X axis. 4. <roll> - rotate around the Z axis (again). Note that each time a rotation is applied, two of the camera axes change their orientation.
rather than sea, the <altitude> will be interpreted as being above the ground. clampToSeaFloor - The <altitude> specification is ignored, and the Camera will be positioned on the sea floor. If the point is on land rather than at sea, the Camera will be positioned on the ground.
Extends
< AbstractView>
Contained By
Any element derived from < Feature> <NetworkLinkControl> Back to top
<ColorStyle>
Syntax
< ! -a b s t r a c te l e m e n t ;d on o tc r e a t e> < ! -C o l o r S t y l ei d = " I D "> < ! -I c o n S t y l e , L a b e l S t y l e , L i n e S t y l e , P o l y S t y l e> < c o l o r > f f f f f f f f < / c o l o r > < ! -k m l : c o l o r> < c o l o r M o d e > n o r m a l < / c o l o r M o d e > < ! -/ C o l o r S t y l e> < ! -k m l : c o l o r M o d e E n u m :n o r m a lo rr a n d o m>
Description
This is an abstract element and cannot be used directly in a KML file. It provides elements for specifying the color and color mode of extended style types.
Extends
< Object>
Extended By
<IconStyle> <LabelStyle> <LineStyle> <PolyStyle>
Back to top
<Container>
Syntax
< ! -a b s t r a c te l e m e n t ;d on o tc r e a t e> < ! -C o n t a i n e ri d = " I D "> < ! -D o c u m e n t , F o l d e r> < ! -i n h e r i t e df r o mF e a t u r ee l e m e n t> < n a m e > . . . < / n a m e > < v i s i b i l i t y > 1 < / v i s i b i l i t y > < o p e n > 0 < / o p e n > < ! -s t r i n g> < ! -b o o l e a n> < ! -b o o l e a n>
< a d d r e s s > . . . < / a d d r e s s > < ! -s t r i n g> < A d d r e s s D e t a i l sx m l n s = " u r n : o a s i s : n a m e s : t c : c i q : x s d s c h e m a : x A L : 2 . 0 " > . . . < / A d d r e s s D e t a i l s > < ! -s t r i n g> < p h o n e N u m b e r > . . . < / p h o n e N u m b e r > < ! -s t r i n g> < S n i p p e tm a x L i n e s = " 2 " > . . . < / S n i p p e t > < d e s c r i p t i o n > . . . < / d e s c r i p t i o n > < A b s t r a c t V i e w > . . . < / A b s t r a c t V i e w > < T i m e P r i m i t i v e > . . . < / T i m e P r i m i t i v e > < s t y l e U r l > . . . < / s t y l e U r l > < ! -a n y U R I> < S t y l e S e l e c t o r > . . . < / S t y l e S e l e c t o r > < R e g i o n > . . . < / R e g i o n > < M e t a d a t a > . . . < / M e t a d a t a > < a t o m : a u t h o r > . . . < a t o m : a u t h o r > < ! -x m l n s : a t o m = " h t t p : / / w w w . w 3 . o r g / 2 0 0 5 / A t o m "> < a t o m : l i n kh r e f = "" / > < ! -s p e c i f i ct oC o n t a i n e r> < ! -0o rm o r eF e a t u r e s> < ! -/ C o n t a i n e r> < ! -s t r i n g> < ! -s t r i n g> < ! -L o o k A to rC a m e r a>
Description
This is an abstract element and cannot be used directly in a KML file. A Container element holds one or more Features and allows the creation of nested hierarchies.
Extends
< Feature>
Extended By
<Document> <Folder> Back to top
<Document>
Syntax
< D o c u m e n ti d = " I D " > < ! -i n h e r i t e df r o mF e a t u r ee l e m e n t> . . . < n a m e > < / n a m e > < v i s i b i l i t y > 1 < / v i s i b i l i t y > < o p e n > 0 < / o p e n > < a t o m : a u t h o r > . . . < a t o m : a u t h o r > < a t o m : l i n kh r e f = "" / > < ! -s t r i n g> < ! -b o o l e a n> < ! -b o o l e a n> < ! -x m l n s : a t o m> < ! -x m l n s : a t o m>
< a d d r e s s > . . . < / a d d r e s s > < ! -s t r i n g> < x a l : A d d r e s s D e t a i l s > . . . < / x a l : A d d r e s s D e t a i l s > < ! -x m l n s : x a l> < p h o n e N u m b e r > . . . < / p h o n e N u m b e r > < ! -s t r i n g> < S n i p p e tm a x L i n e s = " 2 " > . . . < / S n i p p e t > < ! -s t r i n g>
< d e s c r i p t i o n > . . . < / d e s c r i p t i o n > < A b s t r a c t V i e w > . . . < / A b s t r a c t V i e w > < T i m e P r i m i t i v e > . . . < / T i m e P r i m i t i v e > < s t y l e U r l > . . . < / s t y l e U r l > < S t y l e S e l e c t o r > . . . < / S t y l e S e l e c t o r > < R e g i o n > . . . < / R e g i o n > < M e t a d a t a > . . . < / M e t a d a t a > < E x t e n d e d D a t a > . . . < / E x t e n d e d D a t a > < ! -s p e c i f i ct oD o c u m e n t> < ! -0o rm o r eS c h e m ae l e m e n t s> < ! -0o rm o r eF e a t u r ee l e m e n t s> < / D o c u m e n t >
Description
A Document is a container for features and styles. This element is required if your KML file uses shared styles . It is recommended that you use shared styles, which require the following steps: 1. Define all Styles in a Document. Assign a unique ID to each Style. 2. Within a given Feature or StyleMap, reference the Style's ID using a <styleUrl> element. Note that shared styles are not inherited by the Features in the Document. Each Feature must explicitly reference the styles it uses in a <styleUrl> element. For a Style that applies to a Document (such as ListStyle), the Document itself must explicitly reference the <styleUrl>. For example: < D o c u m e n t > < S t y l ei d = " m y P r e t t y D o c u m e n t " > < L i s t S t y l e >. . .< / L i s t S t y l e > < / S t y l e > < s t y l e U r l # m y P r e t t y D o c u m e n t " > . . . < / D o c u m e n t > Do not put shared styles within a Folder. The following example illustrates use of a shared style.
Example
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < D o c u m e n t > < n a m e > D o c u m e n t . k m l < / n a m e > < o p e n > 1 < / o p e n > < S t y l ei d = " e x a m p l e S t y l e D o c u m e n t " > < L a b e l S t y l e > < c o l o r > f f 0 0 0 0 c c < / c o l o r > < / L a b e l S t y l e > < / S t y l e > < P l a c e m a r k > < n a m e > D o c u m e n tF e a t u r e1 < / n a m e > < s t y l e U r l > # e x a m p l e S t y l e D o c u m e n t < / s t y l e U r l > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 7 1 , 3 7 . 8 1 6 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < P l a c e m a r k > < n a m e > D o c u m e n tF e a t u r e2 < / n a m e > < s t y l e U r l > # e x a m p l e S t y l e D o c u m e n t < / s t y l e U r l > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 7 0 , 3 7 . 8 1 7 , 0 < / c o o r d i n a t e s > < / P o i n t >
Extends
< Container>
Contains
0 or more elements derived from < Feature> 0 or more elements derived from < StyleSelector> 0 or more elements derived from <Schema> Back to top
<gx:duration>
This element is an extension of the OGC KML 2.2 standard and is supported in Google Earth 5.0 and later. Learn more
Syntax
< g x : d u r a t i o n > 0 . 0 < / g x : d u r a t i o n > < ! -d o u b l e>
Description
< g x : d u r a t i o n >extends g x : T o u r P r i m i t i v eby specifying a time-span for events. The time is written as seconds using XML's double datatype.
<ExtendedData>
Syntax
< E x t e n d e d D a t a > < D a t an a m e = " s t r i n g " > < d i s p l a y N a m e > . . . < / d i s p l a y N a m e > < v a l u e > . . . < / v a l u e > < / D a t a >
< S c h e m a D a t as c h e m a U r l = " a n y U R I " > < S i m p l e D a t an a m e = " " >. . .< / S i m p l e D a t a > < ! -s t r i n g> < / S c h e m a D a t a > < n a m e s p a c e _ p r e f i x : o t h e r > . . . < / n a m e s p a c e _ p r e f i x : o t h e r > < / E x t e n d e d D a t a >
Description
The ExtendedData element offers three techniques for adding custom data to a KML Feature (NetworkLink, Placemark, GroundOverlay, PhotoOverlay, ScreenOverlay, Document, Folder). These techniques are Adding untyped data/value pairs using the <Data> element (basic) Declaring new typed fields using the <Schema> element and then instancing them using the <SchemaData> element (advanced) Referring to XML elements defined in other namespaces by referencing the external namespace within the KML file (basic) These techniques can be combined within a single KML file or Feature for different pieces of data. For more information, see Adding Custom Data in "Topics in KML."
This element is used in conjunction with <Schema> to add typed custom data to a KML Feature. The Schema element (identified by the schemaUrl attribute) declares the custom data type. The actual data objects ("instances" of the custom data) are defined using the SchemaData element. The <schemaURL> can be a full URL, a reference to a Schema ID defined in an external KML file, or a reference to a Schema ID defined in the same KML file. All of the following specifications are acceptable: s c h e m a U r l = " h t t p : / / h o s t . c o m / P l a c e s I H a v e L i v e d . k m l # m y s c h e m a i d "
s c h e m a U r l = " A n o t h e r F i l e . k m l # m y s c h e m a i d "
s c h e m a U r l = " # s c h e m a i d "
< ! -s a m ef i l e>
The Schema element is always a child of Document. The ExtendedData element is a child of the Feature that contains the custom data. <SimpleData name="string"> This element assigns a value to the custom data field identified by the name attribute. The type and name of this custom data field are declared in the <Schema> element. Here is an example of defining two custom data elements: < P l a c e m a r k > < n a m e > E a s yt r a i l < / n a m e > < E x t e n d e d D a t a > < S c h e m a D a t as c h e m a U r l = " # T r a i l H e a d T y p e I d " > < S i m p l e D a t an a m e = " T r a i l H e a d N a m e " > P ii nt h es k y < / S i m p l e D a t a > < S i m p l e D a t an a m e = " T r a i l L e n g t h " > 3 . 1 4 1 5 9 < / S i m p l e D a t a > < S i m p l e D a t an a m e = " E l e v a t i o n G a i n " > 1 0 < / S i m p l e D a t a > < / S c h e m a D a t a > < / E x t e n d e d D a t a > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 0 0 0 , 3 7 . 0 0 2 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < P l a c e m a r k > < n a m e > D i f f i c u l tt r a i l < / n a m e > < E x t e n d e d D a t a > < S c h e m a D a t as c h e m a U r l = " # T r a i l H e a d T y p e I d " > < S i m p l e D a t an a m e = " T r a i l H e a d N a m e " > M o u n tE v e r e s t < / S i m p l e D a t a > < S i m p l e D a t an a m e = " T r a i l L e n g t h " > 3 4 7 . 4 5 < / S i m p l e D a t a > < S i m p l e D a t an a m e = " E l e v a t i o n G a i n " > 1 0 0 0 0 < / S i m p l e D a t a > < / S c h e m a D a t a > < / E x t e n d e d D a t a > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 0 0 0 , 3 7 . 0 0 2 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < namespace_prefix:other> This element allows you to add untyped custom data. Be sure to reference the namespace prefix in the <kml> element of your file or as an attribute of the <ExtendedData> element and to prefix the name of each data element with the namespace prefix. Custom data added in this manner is preserved in the KML file but is not used by Google Earth in any way. It is always saved along with the file. The following example shows using the "camp" namespace prefix: < E x t e n d e d D a t ax m l n s : p r e f i x = " c a m p " > < c a m p : n u m b e r > 1 4 < / c a m p : n u m b e r > < c a m p : p a r k i n g S p a c e s > 2 < / c a m p : p a r k i n g S p a c e s > < c a m p : t e n t S i t e s > 4 < / c a m p : t e n t S i t e s > < / E x t e n d e d D a t a >
Contained By
Any element derived from < Feature>
See Also
Schema
<Feature>
Syntax
< ! -a b s t r a c te l e m e n t ;d on o tc r e a t e> < ! -F e a t u r ei d = " I D "> < ! -D o c u m e n t , F o l d e r , N e t w o r k L i n k , P l a c e m a r k , G r o u n d O v e r l a y , P h o t o O v e r l a y , S c r e e n O v e r l a y> < n a m e > . . . < / n a m e > < v i s i b i l i t y > 1 < / v i s i b i l i t y > < o p e n > 0 < / o p e n > < a t o m : a u t h o r > . . . < a t o m : a u t h o r > < a t o m : l i n kh r e f = "" / > < ! -s t r i n g> < ! -b o o l e a n> < ! -b o o l e a n> < ! -x m l n s : a t o m> < ! -x m l n s : a t o m>
< a d d r e s s > . . . < / a d d r e s s > < ! -s t r i n g> < x a l : A d d r e s s D e t a i l s > . . . < / x a l : A d d r e s s D e t a i l s > < ! -x m l n s : x a l> < p h o n e N u m b e r > . . . < / p h o n e N u m b e r > < ! -s t r i n g> < S n i p p e tm a x L i n e s = " 2 " > . . . < / S n i p p e t > < d e s c r i p t i o n > . . . < / d e s c r i p t i o n > < A b s t r a c t V i e w > . . . < / A b s t r a c t V i e w > < T i m e P r i m i t i v e > . . . < / T i m e P r i m i t i v e > < s t y l e U r l > . . . < / s t y l e U r l > < S t y l e S e l e c t o r > . . . < / S t y l e S e l e c t o r > < R e g i o n > . . . < / R e g i o n > < M e t a d a t a > . . . < / M e t a d a t a > < E x t e n d e d D a t a > . . . < / E x t e n d e d D a t a > < -/ F e a t u r e> < ! -s t r i n g> < ! -s t r i n g> < ! -C a m e r ao rL o o k A t> < ! -T i m e S t a m po rT i m e S p a n> < ! -a n y U R I>
Description
This is an abstract element and cannot be used directly in a KML file. The following diagram shows how some of a Feature's elements appear in Google Earth.
Boolean value. Specifies whether the feature is drawn in the 3D viewer when it is initially loaded. In order for a feature to be visible, the <visibility> tag of all its ancestors must also be set to 1. In the Google Earth List View, each Feature has a checkbox that allows the user to control visibility of the Feature. <open> Boolean value. Specifies whether a Document or Folder appears closed or open when first loaded into the Places panel. 0=collapsed (the default), 1=expanded. See also <ListStyle>. This element applies only to Document, Folder, and NetworkLink. <atom:author> KML 2.2 supports new elements for including data about the author and related website in your KML file. This information is displayed in geo search results, both in Earth browsers such as Google Earth, and in other applications such as Google Maps. The ascription elements used in KML are as follows: atom:author element - parent element for atom:name atom:name element - the name of the author atom:link element - contains the href attribute href attribute - URL of the web page containing the KML/KMZ file These elements are defined in the Atom Syndication Format. The complete specification is found at http://atompub.org. (see the sample that follows). The <atom:author> element is the parent element for <atom:name>, which specifies the author of the KML feature. <atom:link href="..." > Specifies the URL of the website containing this KML or KMZ file. Be sure to include the namespace for this element in any KML file that uses it: x m l n s : a t o m = " h t t p : / / w w w . w 3 . o r g / 2 0 0 5 / A t o m "(see the sample that follows). <address> A string value representing an unstructured address written as a standard street, city, state address, and/or as a postal code. You can use the <address> tag to specify the location of a point instead of using latitude and longitude coordinates. (However, if a <Point> is provided, it takes precedence over the <address>.) To find out which locales are supported for this tag in Google Earth, go to the Google Maps Help. <xal:AddressDetails> A structured address, formatted as xAL, or eXtensible Address Language, an international standard for address formatting. <xal:AddressDetails> is used by KML for geocoding in Google Maps only. For details, see the Google Maps API documentation. Currently, Google Earth does not use this element; use <address> instead. Be sure to include the namespace for this element in any KML file that uses it: x m l n s : x a l = " u r n : o a s i s : n a m e s : t c : c i q : x s d s c h e m a : x A L : 2 . 0 " <phoneNumber> A string value representing a telephone number. This element is used by Google Maps Mobile only. The industry standard for Java-enabled cellular phones is RFC2806. For more information, see http://www.ietf.org/rfc /rfc2806.txt. <Snippet maxLines="2" > A short description of the feature. In Google Earth, this description is displayed in the Places panel under the name of the feature. If a Snippet is not supplied, the first two lines of the <description> are used. In Google Earth, if a Placemark contains both a description and a Snippet, the <Snippet> appears beneath the Placemark in the Places panel, and the <description> appears in the Placemark's description balloon. This tag does not support HTML markup. <Snippet> has a maxLines attribute, an integer that specifies the maximum number of lines to display. <description> User-supplied content that appears in the description balloon. The supported content for the <description> element changed from Google Earth 4.3 to 5.0. Specific information for each version is listed out below, followed by information common to both. Google Earth 5.0 Google Earth 5.0 (and later) supports plain text content, as well as full HTML and JavaScript, within description balloons. Contents of the description tag are rendered by the WebKit open source web browser engine, and are displayed as they would be in any WebKit-based browser. General restrictions Links to local files are generally not allowed. This prevents malicious code from damaging your system or accessing your data. Should you wish to allow access to your local filesystem, select Preferences > Allow access to local files and personal data . Links to image files on the local filesystem are always allowed, if contained within an <img> tag.
Content that has been compressed into a KMZ file can be accessed, even if on the local filesystem. Cookies are enabled, but for the purposes of the same-origin policy, local content does not share a domain with any other content (including other local content). HTML HTML is mostly rendered as it would be in any WebKit browser. Targets are ignored when included in HTML written directly into the KML; all such links are opened as if the target is set to _blank. Any specified targets are ignored. HTML that is contained in an iFrame, however, or dynamically generated with JavaScript or DHTML, will use target="_self" as the default. Other targets can be specified and are supported. The contents of KMZ files, local anchor links, and ; f l y t omethods cannot be targeted from HTML contained within an iFrame. If the user specifies w i d t h = " 1 0 0 % "for the width of an iFrame, then the iFrame's width will be dependent on all the other content in the balloonit should essentially be ignored while calculating layout size. This rule applies to any other block element inside the balloon as well. JavaScript Most JavaScript is supported. Dialog boxes can not be created - functions such as alert() and prompt() will not be displayed. They will, however, be written to the system console, as will other errors and exceptions. CSS CSS is allowed. As with CSS in a regular web browser, CSS can be used to style text, page elements, and to control the size and appearance of the description balloon. Google Earth 4.3 The <description> element supports plain text as well as a subset of HTML formatting elements, including tables (see KML example below). It does not support other web-based technology, such as dynamic page markup (PHP, JSP, ASP), scripting languages (VBScript, Javascript), nor application languages (Java, Python). In Google Earth release 4.2, video is supported. (See Example below.) Common information If your description contains no HTML markup, Google Earth attempts to format it, replacing newlines with <br> and wrapping URLs with anchor tags. A valid URL string for the World Wide Web is automatically converted to a hyperlink to that URL (e.g., http://www.google.com). Consequently, you do not need to surround a URL with the <a href="http://.."></a> tags in order to achieve a simple link. When using HTML to create a hyperlink around a specific word, or when including images in the HTML, you must use HTML entity references or the CDATA element to escape angle brackets, apostrophes, and other special characters. The CDATA element tells the XML parser to ignore special characters used within the brackets. This element takes the form of: < ! [ C D A T A [ s p e c i a lc h a r a c t e r sh e r e ] ] > If you prefer not to use the CDATA element, you can use entity references to replace all the special characters. < d e s c r i p t i o n > < ! [ C D A T A [ T h i si sa ni m a g e < i m gs r c = " i c o n . j p g " > a n dw eh a v eal i n kh t t p : / / w w w . g o o g l e . c o m . ] ] > < / d e s c r i p t i o n >
Other Behavior Specified Through Use of the <a> Element KML supports the use of two attributes within the <a> element: href and type . The anchor element <a> contains an href attribute that specifies a URL. If the href is a KML file and has a .k ml or .k mz file extension, Google Earth loads that file directly when the user clicks it. If the URL ends with an extension not known to Google Earth (for example, .html), the URL is sent to the browser. The href can be a fragment URL (that is, a URL with a # sign followed by a KML identifier). When the user clicks a link that includes a fragment URL, by default the browser flies to the Feature whose ID matches the fragment. If the Feature has a LookAt or Camera element, the Feature is viewed from the specified viewpoint. The behavior can be further specified by appending one of the following three strings to the fragment URL: ;flyto (default) - fly to the Feature ;balloon - open the Feature's balloon but do not fly to the Feature ;balloonFlyto - open the Feature's balloon and fly to the Feature For example, the following code indicates to open the file CraftsFairs.k ml, fly to the Placemark whose ID is "Albuquerque," and open its balloon: < d e s c r i p t i o n > < ! [ C D A T A [ < ah r e f = " h t t p : / / m y S e r v e r . c o m / C r a f t s F a i r s . k m l # A l b u q u e r q u e ; b a l l o o n F l y t o " > O n eo ft h eB e s tA r tS h o w si nt h eW e s t < / a > ] ] > < / d e s c r i p t i o n > The type attribute is used within the <a> element when the href does not end in .k ml or .k mz , but the reference needs to be interpreted in the context of KML. Specify the following: t y p e = " a p p l i c a t i o n / v n d . g o o g l e e a r t h . k m l + x m l " For example, the following URL uses the t y p eattribute to notify Google Earth that it should attempt to load the file, even though the file extension is .php: < ah r e f = " m y s e r v e r . c o m / c g i b i n / g e n e r a t e k m l . p h p # p l a c e m a r k 1 2 3 " t y p e = " a p p l i c a t i o n / v n d . g o o g l e e a r t h . k m l + x m l " > <AbstractView> Defines a viewpoint associated with any element derived from Feature. See <Camera> and <LookAt>. <TimePrimitive> Associates this Feature with a period of time (<TimeSpan>) or a point in time (<TimeStamp>). <styleUrl> URL of a <Style> or <StyleMap> defined in a Document. If the style is in the same file, use a # reference. If the style is defined in an external file, use a full URL along with # referencing. Examples are < s t y l e U r l > # m y I c o n S t y l e I D < / s t y l e U r l >
< s t y l e U r l > e a t e r i e s . k m l # m y l u n c h s p o t < / s t y l e U r l > < StyleSelector> One or more Styles and StyleMaps can be defined to customize the appearance of any element derived from Feature or of the Geometry in a Placemark. (See <BalloonStyle>, <ListStyle>, <StyleSelector>, and the styles derived from <ColorStyle>.) A style defined within a Feature is called an "inline style" and applies only to the Feature that contains it. A style defined as the child of a <Document> is called a "shared style." A shared style must have an id defined for it. This id is referenced by one or more Features within the <Document>. In cases where a style element is defined both in a shared style and in an inline style for a Featurethat is, a Folder, GroundOverlay, NetworkLink, Placemark, or ScreenOverlaythe
value for the Feature's inline style takes precedence over the value for the shared style. <Region> Features and geometry associated with a Region are drawn only when the Region is active. See <Region>. <Metadata> <ExtendedData> Allows you to add custom data to a KML file. This data can be (1) data that references an external XML schema, (2) untyped data/value pairs, or (3) typed data. A given KML Feature can contain a combination of these types of custom data.
< b r/ > < d l > < d t > S c r u m p y < / d t > < d d > H a r dE n g l i s hc i d e rf r o mt h ew e s tc o u n t r y < / d d > < d t > P e n t a n q u e < / d t > < d d > Af o r mo fb o u l e sw h e r et h eg o a li st ot h r o wm e t a lb a l la s c l o s ea sp o s s i b l et oaj a c k < / d d > < / d l > < h r/ > B l o c kQ u o t e : < b r/ > < b l o c k q u o t e > W es h a l ln o tc e a s ef r o me x p l o r a t i o n < b r/ > A n dt h ee n do fa l lo u re x p l o r i n g < b r/ > W i l lb et oa r r i v ew h e r ew es t a r t e d < b r/ > A n dk n o wt h ep l a c ef o rt h ef i r s tt i m e < / b l o c k q u o t e > < b r/ > < h r/ > C e n t e r e d : < b r/ > < c e n t e r > S e e ,Ih a v eaR h y m ea s s i s t i n g < b r/ > m yf e e b l eb r a i n , < b r/ > i t st a s k so f t t i m e sr e s i s t i n g ! < / c e n t e r > < h r/ > H e a d i n g s : < b r/ > < h 1 > H e a d e r1 < / h 1 > < h 2 > H e a d e r2 < / h 2 > < h 3 > H e a d e r3 < / h 3 > < h 3 > H e a d e r4 < / h 4 > < h 3 > H e a d e r5 < / h 5 > < h r/ > I m a g e s : < b r/ > < i m gs r c = & q < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 7 8 9 2 7 , 3 7 . 8 2 6 7 9 3 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < / k m l >
This example shows how to embed a Flash video inside the Balloon. < ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < D o c u m e n t > < n a m e > V i d e oE x a m p l e < / n a m e > < S t y l ei d = " s n _ b l u e d o t _ c o p y 3 " > < I c o n S t y l e > < I c o n > < h r e f > h t t p : / / w w w . g o o g l e . c o m / i n t l / e n _ u s / m a p f i l e s / m s / i c o n s / b l u e d o t . p n g < / h r e f > < / I c o n > < / I c o n S t y l e > < / S t y l e > < P l a c e m a r k > < n a m e > P l a c e m a r k < / n a m e > < d e s c r i p t i o n > < ! [ C D A T A [ < d i vs t y l e = " f o n t s i z e : l a r g e r " > < d i v > < d i vs t y l e = " w i d t h :2 1 2 p x ;f o n t s i z e :1 2 p x ; " > < b > T h eS p a g h e t t iF i l m < / b > < / d i v > < d i vs t y l e = " f o n t s i z e :1 1 p x ; " > < at a r g e t = " _ b l a n k "h r e f = " h t t p : / / w w w . y o u t u b e . c o m / ? v = F I C U v r V l y X c " > h t t p : / / w w w . y o u t u b e . c o m / ? v = F I C U v r V l y X c < / a > < b r > < / d i v > < b r > < d i vs t y l e = " m a r g i n l e f t :a u t o ;m a r g i n r i g h t : a u t o ; " > < o b j e c th e i g h t = " 1 7 5 "w i d t h = " 2 1 2 " > < p a r a mv a l u e = " h t t p : / / w w w . y o u t u b e . c o m / v / F I C U v r V l y X c "n a m e = " m o v i e " > < p a r a mv a l u e = " t r a n s p a r e n t "n a m e = " w m o d e " > < e m b e dw m o d e = " t r a n s p a r e n t "t y p e = " a p p l i c a t i o n / x s h o c k w a v e f l a s h " s r c = " h t t p : / / w w w . y o u t u b e . c o m / v / F I C U v r V l y X c "h e i g h t = " 1 7 5 " w i d t h = " 2 1 2 " > < / o b j e c t > < / d i v > < / d i v > < / d i v > < d i vs t y l e = " f o n t s i z e :s m a l l e r ;m a r g i n t o p :1 e m ; " > S a v e df r o m < ah r e f = " h t t p : / / m a p s . g o o g l e . c o m / i g / a d d ? s y n d = m p l & p i d = m p l & m o d u l e u r l = h t t p : % 2 F % 2 F w w w . g o o g l e . c o m % 2 F i g % 2 F m o d u l e s % 2 F m a p p l e t s y o u t u b e . x m l & h l = e n & g l = u s " > Y o u T u b e V i d e o s < / a > < / d i v > ] ] > < / d e s c r i p t i o n > < s t y l e U r l > # s n _ b l u e d o t _ c o p y 3 < / s t y l e U r l > < P o i n t > < c o o r d i n a t e s > 9 3 . 4 7 8 7 5 9 9 9 9 9 9 9 9 9 , 4 5 . 0 8 3 2 4 8 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < / D o c u m e n t > < / k m l >
Extends
< Object>
Extended By
< Container> <Overlay> <Placemark> <NetworkLink> <gx:Tour>
<gx:FlyTo>
This element is an extension of the OGC KML 2.2 standard and is supported in Google Earth 5.0 and later. Learn more
Syntax
< g x : F l y T oi d = " I D " > < g x : d u r a t i o n > 0 . 0 < / g x : d u r a t i o n > < g x : f l y T o M o d e > b o u n c e < / g x : d u r a t i o n > < ! -A b s t r a c t V i e w> . . . < ! -/ A b s t r a c t V i e w> < / g x : F l y T o >
Description
< g x : F l y T o >specifies a point in space to which the browser will fly during a tour. It must contain one AbstractView, and should contain < g x : d u r a t i o n >and < g x : f l y T o M o d e >elements, which specify the time it takes to fly to the defined point from the current point, and the method of flight, respectively.
<gx:flyToMode>
There are two allowed values for < g x : f l y T o M o d e > : smooth, and bounce . Smooth FlyTos allow for an unbroken flight from point to point to point (and on). An unbroken series of smooth FlyTos will begin and end at zero velocity, and will not slow at each point. A series of smooth FlyTos is broken by any of the following elements: < g x : f l y T o M o d e > b o u n c e < / g x : f l y T o M o d e > < g x : W a i t > This means that velocity will be zero at the smooth FlyTo immediately preceding either of the above elements. A series of smooth FlyTos is not broken by <gx:AnimatedUpdate> elements. Bounce FlyTos each begin and end at zero velocity.
Example
< g x : F l y T o > < g x : d u r a t i o n > 2 . 5 5 < / g x : d u r a t i o n > < g x : f l y T o M o d e > s m o o t h < / g x : f l y T o M o d e > < C a m e r a > < l o n g i t u d e > 1 1 3 . 0 8 4 4 4 8 < / l o n g i t u d e > < l a t i t u d e > 3 6 . 5 6 7 0 8 1 < / l a t i t u d e > < a l t i t u d e > 4 1 2 7 7 . 5 7 1 4 0 3 < / a l t i t u d e > < h e a d i n g > 1 1 6 . 1 5 0 2 2 7 < / h e a d i n g > < a l t i t u d e M o d e > a b s o l u t e < / a l t i t u d e M o d e > < / C a m e r a > < / g x : F l y T o >
Extends
<gx:TourPrimitive>
Contains
<gx:duration> <gx:flyToMode> <AbstractView>
<Folder>
Syntax
< F o l d e ri d = " I D " > < ! -i n h e r i t e df r o mF e a t u r ee l e m e n t> < n a m e > . . . < / n a m e > < v i s i b i l i t y > 1 < / v i s i b i l i t y > < o p e n > 0 < / o p e n > < a t o m : a u t h o r > . . . < a t o m : a u t h o r > < a t o m : l i n kh r e f = "" / > < ! -s t r i n g> < ! -b o o l e a n> < ! -b o o l e a n> < ! -x m l n s : a t o m> < ! -x m l n s : a t o m>
< a d d r e s s > . . . < / a d d r e s s > < ! -s t r i n g> < x a l : A d d r e s s D e t a i l s > . . . < / x a l : A d d r e s s D e t a i l s > < ! -x m l n s : x a l> < p h o n e N u m b e r > . . . < / p h o n e N u m b e r > < ! -s t r i n g> < S n i p p e tm a x L i n e s = " 2 " > . . . < / S n i p p e t > < d e s c r i p t i o n > . . . < / d e s c r i p t i o n > < A b s t r a c t V i e w > . . . < / A b s t r a c t V i e w > < T i m e P r i m i t i v e > . . . < / T i m e P r i m i t i v e > < s t y l e U r l > . . . < / s t y l e U r l > < S t y l e S e l e c t o r > . . . < / S t y l e S e l e c t o r > < R e g i o n > . . . < / R e g i o n > < M e t a d a t a > . . . < / M e t a d a t a > < E x t e n d e d D a t a > . . . < / E x t e n d e d D a t a > < ! -s p e c i f i ct oF o l d e r> < ! -0o rm o r eF e a t u r ee l e m e n t s> < / F o l d e r > < ! -a n y U R I> < ! -s t r i n g> < ! -s t r i n g> < ! -C a m e r ao rL o o k A t>
< ! -d e p r e c a t e di nK M L2 . 2>
Description
A Folder is used to arrange other Features hierarchically (Folders, Placemarks, NetworkLinks, or Overlays). A Feature is visible only if it and all its ancestors are visible.
Example
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < F o l d e r > < n a m e > F o l d e r . k m l < / n a m e > < o p e n > 1 < / o p e n > < d e s c r i p t i o n > Af o l d e ri sac o n t a i n e rt h a tc a nh o l dm u l t i p l eo t h e ro b j e c t s < / d e s c r i p t i o n > < P l a c e m a r k > < n a m e > F o l d e ro b j e c t1( P l a c e m a r k ) < / n a m e > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 7 7 5 8 8 , 3 7 . 8 3 0 2 6 6 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < P l a c e m a r k > < n a m e > F o l d e ro b j e c t2( P o l y g o n ) < / n a m e > < P o l y g o n > < o u t e r B o u n d a r y I s > < L i n e a r R i n g > < c o o r d i n a t e s > 1 2 2 . 3 7 7 8 3 0 , 3 7 . 8 3 0 4 4 5 , 0 1 2 2 . 3 7 7 5 7 6 , 3 7 . 8 3 0 6 3 1 , 0 1 2 2 . 3 7 7 8 4 0 , 3 7 . 8 3 0 6 4 2 , 0 1 2 2 . 3 7 7 8 3 0 , 3 7 . 8 3 0 4 4 5 , 0 < / c o o r d i n a t e s > < / L i n e a r R i n g > < / o u t e r B o u n d a r y I s > < / P o l y g o n > < / P l a c e m a r k > < P l a c e m a r k > < n a m e > F o l d e ro b j e c t3( P a t h ) < / n a m e > < L i n e S t r i n g > < t e s s e l l a t e > 1 < / t e s s e l l a t e >
< c o o r d i n a t e s > 1 2 2 . 3 7 8 0 0 9 , 3 7 . 8 3 0 1 2 8 , 01 2 2 . 3 7 7 8 8 5 , 3 7 . 8 3 0 3 7 9 , 0 < / c o o r d i n a t e s > < / L i n e S t r i n g > < / P l a c e m a r k > < / F o l d e r > < / k m l >
Extends
< Container>
Contains
Any element derived from < Feature>
<Geometry>
Syntax
< ! -a b s t r a c te l e m e n t ;d on o tc r e a t e> < ! -G e o m e t r yi d = " I D "> < ! -P o i n t , L i n e S t r i n g , L i n e a r R i n g , P o l y g o n , M u l t i G e o m e t r y , M o d e l , g x : T r a c k> < ! -/ G e o m e t r y>
Description
This is an abstract element and cannot be used directly in a KML file. It provides a placeholder object for all derived Geometry objects.
Extends
< Object>
Extended By
<Point> <LineString> <LinearRing> <Polygon> <MultiGeometry> <gx:MultiTrack> <Model> <gx:Track>
<GroundOverlay>
Syntax
< G r o u n d O v e r l a yi d = " I D " > < ! -i n h e r i t e df r o mF e a t u r ee l e m e n t> < n a m e > . . . < / n a m e > < v i s i b i l i t y > 1 < / v i s i b i l i t y > < o p e n > 0 < / o p e n > < a t o m : a u t h o r > . . . < a t o m : a u t h o r > < a t o m : l i n kh r e f = "" / > < ! -s t r i n g> < ! -b o o l e a n> < ! -b o o l e a n> < ! -x m l n s : a t o m> < ! -x m l n s : a t o m>
< a d d r e s s > . . . < / a d d r e s s > < ! -s t r i n g> < x a l : A d d r e s s D e t a i l s > . . . < / x a l : A d d r e s s D e t a i l s > < ! -x m l n s : x a l>
< p h o n e N u m b e r > . . . < / p h o n e N u m b e r > < S n i p p e tm a x L i n e s = " 2 " > . . . < / S n i p p e t > < d e s c r i p t i o n > . . . < / d e s c r i p t i o n > < A b s t r a c t V i e w > . . . < / A b s t r a c t V i e w > < T i m e P r i m i t i v e > . . . < / T i m e P r i m i t i v e > < s t y l e U r l > . . . < / s t y l e U r l > < S t y l e S e l e c t o r > . . . < / S t y l e S e l e c t o r > < R e g i o n > . . . < / R e g i o n > < M e t a d a t a > . . . < / M e t a d a t a > < E x t e n d e d D a t a > . . . < / E x t e n d e d D a t a >
< ! -s t r i n g> < ! -s t r i n g> < ! -s t r i n g> < ! -C a m e r ao rL o o k A t> < ! -a n y U R I>
< ! -i n h e r i t e df r o mO v e r l a ye l e m e n t> < c o l o r > f f f f f f f f < / c o l o r > < d r a w O r d e r > 0 < / d r a w O r d e r > < I c o n > . . . < / I c o n >
< ! -s p e c i f i ct oG r o u n d O v e r l a y> < a l t i t u d e > 0 < / a l t i t u d e > < ! -d o u b l e> < a l t i t u d e M o d e > c l a m p T o G r o u n d < / a l t i t u d e M o d e > < ! -k m l : a l t i t u d e M o d e E n u m :c l a m p T o G r o u n do ra b s o l u t e> < ! -o r ,s u b s t i t u t eg x : a l t i t u d e M o d e :c l a m p T o S e a F l o o ro rr e l a t i v e T o S e a F l o o r> < L a t L o n B o x > < n o r t h > . . . < / n o r t h > < !k m l : a n g l e 9 0> < s o u t h > . . . < / s o u t h > < e a s t > . . . < / e a s t > < w e s t > . . . < / w e s t > < r o t a t i o n > 0 < / r o t a t i o n > < / L a t L o n B o x > < g x : L a t L o n Q u a d > < c o o r d i n a t e s > . . . < / c o o r d i n a t e s > < / g x : L a t L o n Q u a d > < / G r o u n d O v e r l a y > < !k m l : a n g l e 9 0> < !k m l : a n g l e 1 8 0> < !k m l : a n g l e 1 8 0> < !k m l : a n g l e 1 8 0>
< ! -f o u rl o n , l a tt u p l e s>
Description
This element draws an image overlay draped onto the terrain. The <href> child of <Icon> specifies the image to be used as the overlay. This file can be either on a local file system or on a web server. If this element is omitted or contains no <href>, a rectangle is drawn using the color and L a t L o n B o xbounds defined by the ground overlay.
overlays that overlap the meridian of 180 longitude, values can extend beyond that range.) <rotation> Specifies a rotation of the overlay about its center, in degrees. Values can be 180. The default is 0 (north). Rotations are specified in a counterclockwise direction. < L a t L o n B o x > < n o r t h > 4 8 . 2 5 4 7 5 9 3 9 2 5 5 5 5 6 < / n o r t h > < s o u t h > 4 8 . 2 5 2 0 7 3 6 7 8 5 2 1 4 1 < / s o u t h > < e a s t > 9 0 . 8 6 5 9 1 5 0 8 8 3 9 9 7 3 < / e a s t > < w e s t > 9 0 . 8 7 1 4 2 8 5 2 8 9 6 9 5 < / w e s t > < r o t a t i o n > 3 9 . 3 7 8 7 8 6 3 0 1 1 6 9 8 5 < / r o t a t i o n > < / L a t L o n B o x > <gx:LatLonQuad> Used for nonrectangular quadrilateral ground overlays.
Example
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < G r o u n d O v e r l a y > < n a m e > G r o u n d O v e r l a y . k m l < / n a m e > < c o l o r > 7 f f f f f f f < / c o l o r > < d r a w O r d e r > 1 < / d r a w O r d e r > < I c o n > < h r e f > h t t p : / / w w w . g o o g l e . c o m / i n t l / e n / i m a g e s / l o g o . g i f < / h r e f > < r e f r e s h M o d e > o n I n t e r v a l < / r e f r e s h M o d e > < r e f r e s h I n t e r v a l > 8 6 4 0 0 < / r e f r e s h I n t e r v a l > < v i e w B o u n d S c a l e > 0 . 7 5 < / v i e w B o u n d S c a l e > < / I c o n > < L a t L o n B o x > < n o r t h > 3 7 . 8 3 2 3 4 < / n o r t h > < s o u t h > 3 7 . 8 3 2 1 2 2 < / s o u t h > < e a s t > 1 2 2 . 3 7 3 0 3 3 < / e a s t > < w e s t > 1 2 2 . 3 7 3 7 2 4 < / w e s t > < r o t a t i o n > 4 5 < / r o t a t i o n > < / L a t L o n B o x > < / G r o u n d O v e r l a y > < / k m l >
Extends
< Feature> < Overlay>
Contained By
<Document> <Folder>
<Icon>
Syntax
< I c o ni d = " I D " > < ! -s p e c i f i ct oI c o n> < h r e f > . . . < / h r e f > < g x : x > 0 < g x : x / > < g x : y > 0 < g x : y / > < g x : w > 1 < g x : w / > < g x : h > 1 < g x : h / > < r e f r e s h M o d e > o n C h a n g e < / r e f r e s h M o d e > < ! -a n y U R I> < ! -i n t> < ! -i n t> < ! -i n t> < ! -i n t>
< v i e w R e f r e s h M o d e > n e v e r < / v i e w R e f r e s h M o d e > < ! -k m l : v i e w R e f r e s h M o d e E n u m :n e v e r ,o n S t o p ,o n R e q u e s t ,o n R e g i o n> < v i e w R e f r e s h T i m e > 4 < / v i e w R e f r e s h T i m e > < ! -f l o a t> < v i e w B o u n d S c a l e > 1 < / v i e w B o u n d S c a l e > < ! -f l o a t> < v i e w F o r m a t > . . . < / v i e w F o r m a t > < ! -s t r i n g> < h t t p Q u e r y > . . . < / h t t p Q u e r y > < ! -s t r i n g> < / I c o n >
Description
Defines an image associated with an Icon style or overlay. The required <href> child element defines the location of the image to be used as the overlay or as the icon for the placemark. This location can either be on a local file system or a remote web server. The <gx:x>, <gx:y>, <gx:w>, and <gx:h> elements are used to select one icon from an image that contains multiple icons (often referred to as an icon palette. < I c o n > < h r e f > S u n s e t . j p g < / h r e f > < / I c o n >
< ! -H e r e ,t h ei m a g ec o n t a i n so n l yo n ei c o n>
< I c o n > < h r e f > / h o m e / m y d i r / m y i c o n p a l e t t e . j p g < / h r e f > < g x : w > 1 3 8 < / g x : w > < g x : h > 1 3 8 < / g x : h > < ! -S i n c exa n dyv a l u e sa r eo m i t t e d ,t h e s em e a s u r e m e n t sa r em a d es t a r t i n ga t t h el o w e r l e f tc o r n e ro ft h ei c o np a l e t t ei m a g e> < / I c o n >
Contained By
<GroundOverlay> <ScreenOverlay> <IconStyle>
<IconStyle>
Syntax
< I c o n S t y l ei d = " I D " > < ! -i n h e r i t e df r o mC o l o r S t y l e> < c o l o r > f f f f f f f f < / c o l o r > < ! -k m l : c o l o r> < c o l o r M o d e > n o r m a l < / c o l o r M o d e > < ! -k m l : c o l o r M o d e E n u m : n o r m a lo rr a n d o m>
< ! -s p e c i f i ct oI c o n S t y l e> < s c a l e > 1 < / s c a l e > < ! -f l o a t> < h e a d i n g > 0 < / h e a d i n g > < ! -f l o a t> < I c o n > < h r e f > . . . < / h r e f > < / I c o n > < h o t S p o tx = " 0 . 5 " y = " 0 . 5 " x u n i t s = " f r a c t i o n "y u n i t s = " f r a c t i o n " / > < ! -k m l : v e c 2> < / I c o n S t y l e >
Description
Specifies how icons for point Placemarks are drawn, both in the Places panel and in the 3D viewer of Google Earth. The <Icon> element specifies the icon image. The <scale> element specifies the x, y scaling of the icon. The color specified in the <color> element of <IconStyle> is blended with the color of the <Icon>.
Example
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < D o c u m e n t > < S t y l ei d = " r a n d o m C o l o r I c o n " > < I c o n S t y l e > < c o l o r > f f 0 0 f f 0 0 < / c o l o r > < c o l o r M o d e > r a n d o m < / c o l o r M o d e > < s c a l e > 1 . 1 < / s c a l e > < I c o n > < h r e f > h t t p : / / m a p s . g o o g l e . c o m / m a p f i l e s / k m l / p a l 3 / i c o n 2 1 . p n g < / h r e f >
< / I c o n > < / I c o n S t y l e > < / S t y l e > < P l a c e m a r k > < n a m e > I c o n S t y l e . k m l < / n a m e > < s t y l e U r l > # r a n d o m C o l o r I c o n < / s t y l e U r l > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 6 8 6 8 , 3 7 . 8 3 1 1 4 5 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < / D o c u m e n t > < / k m l >
Extends
< ColorStyle>
Contained By
<Style>
Contains
<href> as a child of <Icon>
<kml>
Syntax
< k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 "h i n t = " t a r g e t = s k y " >. . .< / k m l >
Description
The root element of a KML file. This element is required. It follows the xml declaration at the beginning of the file. The hint attribute is used as a signal to Google Earth to display the file as celestial data. The <kml> element may also include the namespace for any external XML schemas that are referenced within the file. A basic <kml> element contains 0 or 1 Feature and 0 or 1 NetworkLinkControl: < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < N e t w o r k L i n k C o n t r o l >. . .< / N e t w o r k L i n k C o n t r o l > < ! -0o r1F e a t u r ee l e m e n t s> < / k m l >
<LabelStyle>
Syntax
< L a b e l S t y l ei d = " I D " > < ! -i n h e r i t e df r o mC o l o r S t y l e> < c o l o r > f f f f f f f f < / c o l o r > < ! -k m l : c o l o r> < c o l o r M o d e > n o r m a l < / c o l o r M o d e > < ! -s p e c i f i ct oL a b e l S t y l e> < s c a l e > 1 < / s c a l e > < / L a b e l S t y l e > < ! -k m l : c o l o r M o d e E n u m :n o r m a lo rr a n d o m>
< ! -f l o a t>
Description
Specifies how the <name> of a Feature is drawn in the 3D viewer. A custom color, color mode, and scale for the label (name) can be specified. Note: The <labelColor> tag is deprecated. Use <LabelStyle> instead.
Specific to <LabelStyle>
<scale> Resizes the label.
Example
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < D o c u m e n t > < S t y l ei d = " r a n d o m L a b e l C o l o r " > < L a b e l S t y l e > < c o l o r > f f 0 0 0 0 c c < / c o l o r > < c o l o r M o d e > r a n d o m < / c o l o r M o d e > < s c a l e > 1 . 5 < / s c a l e > < / L a b e l S t y l e > < / S t y l e > < P l a c e m a r k > < n a m e > L a b e l S t y l e . k m l < / n a m e > < s t y l e U r l > # r a n d o m L a b e l C o l o r < / s t y l e U r l > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 6 7 3 7 5 , 3 7 . 8 2 9 1 9 2 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < / D o c u m e n t > < / k m l >
Extends
< ColorStyle>
Contained By
<Style>
<gx:LatLonQuad>
This element is an extension of the OGC KML 2.2 standard and is supported in Google Earth 5.0 and later. Learn more
Syntax
< G r o u n d O v e r l a yi d = " I D " > . . . < I c o n > . . . < / I c o n > < a l t i t u d e > 0 < / a l t i t u d e > < a l t i t u d e M o d e > c l a m p T o G r o u n d < / a l t i t u d e M o d e > < ! -o ra b s o l u t e> < ! -c a ns u b s t i t u t e< g x : a l t i t u d e M o d e > c l a m p T o S e a F l o o r < / g x : a l t i t u d e M o d e >> < g x : L a t L o n Q u a d > < c o o r d i n a t e s > . . . < / c o o r d i n a t e s > < / g x : L a t L o n Q u a d > < / G r o u n d O v e r l a y >
< ! -f o u rl o n , l a tt u p l e s>
Description
Allows nonrectangular quadrilateral ground overlays.
Specifies the coordinates of the four corner points of a quadrilateral defining the overlay area. Exactly four coordinate tuples have to be provided, each consisting of floating point values for longitude and latitude. Insert a space between tuples. Do not include spaces within a tuple. The coordinates must be specified in counter-clockwise order with the first coordinate corresponding to the lower-left corner of the overlayed image. The shape described by these corners must be convex. If a third value is inserted into any tuple (representing altitude) it will be ignored. Altitude is set using < a l t i t u d e >and < a l t i t u d e M o d e >(or < g x : a l t i t u d e M o d e > ) extending < G r o u n d O v e r l a y > . Allowed altitude modes are absolute , clampToGround, and clampToSeaFloor.
Example
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " x m l n s : g x = " h t t p : / / w w w . g o o g l e . c o m / k m l / e x t / 2 . 2 " > < G r o u n d O v e r l a y > < n a m e > g x : L a t L o n Q u a dE x a m p l e < / n a m e > < I c o n > < h r e f > h t t p : / / d e v e l o p e r s . g o o g l e . c o m / k m l / d o c u m e n t a t i o n / i m a g e s / r e c t a n g l e . g i f < / h r e f > < v i e w B o u n d S c a l e > 0 . 7 5 < / v i e w B o u n d S c a l e > < / I c o n > < g x : L a t L o n Q u a d > < c o o r d i n a t e s > 8 1 . 6 0 1 8 8 4 , 4 4 . 1 6 0 7 2 38 3 . 5 2 9 9 0 2 , 4 3 . 6 6 5 1 4 88 2 . 9 4 7 7 3 7 , 4 4 . 2 4 8 8 3 18 1 . 5 0 9 3 2 2 , 4 4 . 3 2 1 0 1 5 < / c o o r d i n a t e s > < / g x : L a t L o n Q u a d > < / G r o u n d O v e r l a y > < / k m l >
Extends
<Object>
Contained by
<GroundOverlay>
<LinearRing>
Syntax
< L i n e a r R i n gi d = " I D " > < ! -s p e c i f i ct oL i n e a r R i n g> < g x : a l t i t u d e O f f s e t > 0 < / g x : a l t i t u d e O f f s e t > < ! -d o u b l e> < e x t r u d e > 0 < / e x t r u d e > < ! -b o o l e a n> < t e s s e l l a t e > 0 < / t e s s e l l a t e > < ! -b o o l e a n> < a l t i t u d e M o d e > c l a m p T o G r o u n d < / a l t i t u d e M o d e > < ! -k m l : a l t i t u d e M o d e E n u m :c l a m p T o G r o u n d ,r e l a t i v e T o G r o u n d ,o ra b s o l u t e> < ! -o r ,s u b s t i t u t eg x : a l t i t u d e M o d e :c l a m p T o S e a F l o o r ,r e l a t i v e T o S e a F l o o r> < c o o r d i n a t e s > . . . < / c o o r d i n a t e s > < / L i n e a r R i n g > < ! -l o n , l a t [ , a l t ]t u p l e s>
Description
Defines a closed line string, typically the outer boundary of a Polygon. Optionally, a LinearRing can also be used as the inner boundary of a Polygon to create holes in the Polygon. A Polygon can contain multiple <LinearRing> elements used as inner boundaries. Note: In Google Earth, a Polygon with an <altitudeMode> of clampToGround follows lines of constant bearing; however, a LinearRing (by itself) with an <altitudeMode> of clampToGround follows great circle lines.
<gx:altitudeOffset> A KML extension, in the Google extension namespace, that modifies how the altitude values are rendered. This offset allows you to move an entire LinearRing up or down as a unit without modifying all the individual coordinate values that make up the LinearRing. (Although the LinearRing is displayed using the altitude offset value, the original altitude values are preserved in the KML file.) Units are in meters. <extrude> Boolean value. Specifies whether to connect the LinearRing to the ground. To extrude this geometry, the altitude mode must be either relativeToGround, relativeToSeaFloor, or absolute . Only the vertices of the LinearRing are extruded, not the center of the geometry. The vertices are extruded toward the center of the Earth's sphere. <tessellate> Boolean value. Specifies whether to allow the LinearRing to follow the terrain. To enable tessellation, the value for <altitudeMode> must be clampToGround or clampToSeaFloor. Very large LinearRings should enable tessellation so that they follow the curvature of the earth (otherwise, they may go underground and be hidden). <altitudeMode> Specifies how altitude components in the <coordinates> element are interpreted. Possible values are clampToGround - (default) Indicates to ignore an altitude specification (for example, in the <coordinates> tag). relativeToGround - Sets the altitude of the element relative to the actual ground elevation of a particular location. For example, if the ground elevation of a location is exactly at sea level and the altitude for a point is set to 9 meters, then the elevation for the icon of a point placemark elevation is 9 meters with this mode. However, if the same coordinate is set over a location where the ground elevation is 10 meters above sea level, then the elevation of the coordinate is 19 meters. A typical use of this mode is for placing telephone poles or a ski lift. absolute - Sets the altitude of the coordinate relative to sea level, regardless of the actual elevation of the terrain beneath the element. For example, if you set the altitude of a coordinate to 10 meters with an absolute altitude mode, the icon of a point placemark will appear to be at ground level if the terrain beneath is also 10 meters above sea level. If the terrain is 3 meters above sea level, the placemark will appear elevated above the terrain by 7 meters. A typical use of this mode is for aircraft placement. <gx:altitudeMode> A KML extension in the Google extension namespace, allowing altitudes relative to the sea floor. Values are: relativeToSeaFloor - Interprets the <altitude> as a value in meters above the sea floor. If the point is above land rather than sea, the <altitude> will be interpreted as being above the ground. clampToSeaFloor - The <altitude> specification is ignored, and the point will be positioned on the sea floor. If the point is on land rather than at sea, the point will be positioned on the ground. <coordinates> (required) Four or more tuples, each consisting of floating point values for longitude, latitude, and altitude. The altitude component is optional. Do not include spaces within a tuple. The last coordinate must be the same as the first coordinate. Coordinates are expressed in decimal degrees only.
Example
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < P l a c e m a r k > < n a m e > L i n e a r R i n g . k m l < / n a m e > < P o l y g o n > < o u t e r B o u n d a r y I s > < L i n e a r R i n g > < c o o r d i n a t e s > 1 2 2 . 3 6 5 6 6 2 , 3 7 . 8 2 6 9 8 8 , 0 1 2 2 . 3 6 5 2 0 2 , 3 7 . 8 2 6 3 0 2 , 0 1 2 2 . 3 6 4 5 8 1 , 3 7 . 8 2 6 5 5 , 0 1 2 2 . 3 6 5 0 3 8 , 3 7 . 8 2 7 2 3 7 , 0 1 2 2 . 3 6 5 6 6 2 , 3 7 . 8 2 6 9 8 8 , 0 < / c o o r d i n a t e s > < / L i n e a r R i n g > < / o u t e r B o u n d a r y I s > < / P o l y g o n > < / P l a c e m a r k > < / k m l >
Extends
< Geometry>
Contained By
<MultiGeometry> <Placemark> <innerBoundaryIs> <outerBoundaryIs>
<LineString>
Syntax
< L i n e S t r i n gi d = " I D " > < ! -s p e c i f i ct oL i n e S t r i n g> < g x : a l t i t u d e O f f s e t > 0 < / g x : a l t i t u d e O f f s e t > < ! -d o u b l e> < e x t r u d e > 0 < / e x t r u d e > < ! -b o o l e a n> < t e s s e l l a t e > 0 < / t e s s e l l a t e > < ! -b o o l e a n> < a l t i t u d e M o d e > c l a m p T o G r o u n d < / a l t i t u d e M o d e > < ! -k m l : a l t i t u d e M o d e E n u m :c l a m p T o G r o u n d ,r e l a t i v e T o G r o u n d ,o ra b s o l u t e> < ! -o r ,s u b s t i t u t eg x : a l t i t u d e M o d e :c l a m p T o S e a F l o o r ,r e l a t i v e T o S e a F l o o r> < g x : d r a w O r d e r > 0 < / g x : d r a w O r d e r > < ! -i n t e g e r> < c o o r d i n a t e s > . . . < / c o o r d i n a t e s > < / L i n e S t r i n g > < ! -l o n , l a t [ , a l t ]>
Description
Defines a connected set of line segments. Use <LineStyle> to specify the color, color mode, and width of the line. When a LineString is extruded, the line is extended to the ground, forming a polygon that looks somewhat like a wall or fence. For extruded LineStrings, the line itself uses the current LineStyle, and the extrusion uses the current PolyStyle. See the KML Tutorial for examples of LineStrings (or paths ).
<gx:altitudeMode> A KML extension, in the Google extension namespace, allowing altitudes relative to the sea floor. Values are: relativeToSeaFloor - Interprets the <altitude> as a value in meters above the sea floor. If the point is above land rather than sea, the <altitude> will be interpreted as being above the ground. clampToSeaFloor - The <altitude> specification is ignored, and the point will be positioned on the sea floor. If the point is on land rather than at sea, the point will be positioned on the ground. <gx:drawOrder> An integer value that specifies the order for drawing multiple line strings. LineStrings drawn first may be partially or fully obscured by LineStrings with a later draw order. This element may be required in conjunction with the < g x : o u t e r C o l o r > and < g x : o u t e r W i d t h >elements in <LineStyle> when dual-colored lines cross each other. <coordinates> (required) Two or more coordinate tuples, each consisting of floating point values for longitude, latitude, and altitude. The altitude component is optional. Insert a space between tuples. Do not include spaces within a tuple.
Example
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < D o c u m e n t > < n a m e > L i n e S t r i n g . k m l < / n a m e > < o p e n > 1 < / o p e n > < L o o k A t > < l o n g i t u d e > 1 2 2 . 3 6 4 1 5 < / l o n g i t u d e > < l a t i t u d e > 3 7 . 8 2 4 5 5 3 < / l a t i t u d e > < a l t i t u d e > 0 < / a l t i t u d e > < r a n g e > 1 5 0 < / r a n g e > < t i l t > 5 0 < / t i l t > < h e a d i n g > 0 < / h e a d i n g > < / L o o k A t > < P l a c e m a r k > < n a m e > u n e x t r u d e d < / n a m e > < L i n e S t r i n g > < e x t r u d e > 1 < / e x t r u d e > < t e s s e l l a t e > 1 < / t e s s e l l a t e > < c o o r d i n a t e s > 1 2 2 . 3 6 4 3 8 3 , 3 7 . 8 2 4 6 6 4 , 01 2 2 . 3 6 4 1 5 2 , 3 7 . 8 2 4 3 2 2 , 0 < / c o o r d i n a t e s > < / L i n e S t r i n g > < / P l a c e m a r k > < P l a c e m a r k > < n a m e > e x t r u d e d < / n a m e > < L i n e S t r i n g > < e x t r u d e > 1 < / e x t r u d e > < t e s s e l l a t e > 1 < / t e s s e l l a t e > < a l t i t u d e M o d e > r e l a t i v e T o G r o u n d < / a l t i t u d e M o d e > < c o o r d i n a t e s > 1 2 2 . 3 6 4 1 6 7 , 3 7 . 8 2 4 7 8 7 , 5 01 2 2 . 3 6 3 9 1 7 , 3 7 . 8 2 4 4 2 3 , 5 0 < / c o o r d i n a t e s > < / L i n e S t r i n g > < / P l a c e m a r k > < / D o c u m e n t > < / k m l >
Extends
< Geometry>
Contained By
<MultiGeometry> <Placemark>
<LineStyle>
Syntax
< L i n e S t y l ei d = " I D " > < ! -i n h e r i t e df r o mC o l o r S t y l e> < c o l o r > f f f f f f f f < / c o l o r > < ! -k m l : c o l o r> < c o l o r M o d e > n o r m a l < / c o l o r M o d e > < ! -c o l o r M o d e E n u m :n o r m a lo rr a n d o m>
< ! -s p e c i f i ct oL i n e S t y l e> < w i d t h > 1 < / w i d t h > < g x : o u t e r C o l o r > f f f f f f f f < / g x : o u t e r C o l o r > < g x : o u t e r W i d t h > 0 . 0 < / g x : o u t e r W i d t h > < g x : p h y s i c a l W i d t h > 0 . 0 < / g x : p h y s i c a l W i d t h > < g x : l a b e l V i s i b i l i t y > 0 < / g x : l a b e l V i s i b i l i t y > < / L i n e S t y l e >
< ! -f l o a t> < ! -k m l : c o l o r> < ! -f l o a t> < ! -f l o a t> < ! -b o o l e a n>
Description
Specifies the drawing style (color, color mode, and line width) for all line geometry. Line geometry includes the outlines of outlined polygons and the extruded "tether" of Placemark icons (if extrusion is enabled).
Example
The following example shows a 50 percent opaque red line with a width of 4 pixels. < ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < D o c u m e n t > < n a m e > L i n e S t y l e . k m l < / n a m e > < o p e n > 1 < / o p e n > < S t y l ei d = " l i n e s t y l e E x a m p l e " > < L i n e S t y l e > < c o l o r > 7 f 0 0 0 0 f f < / c o l o r > < w i d t h > 4 < / w i d t h > < g x : l a b e l V i s i b i l i t y > 1 < / g x : l a b e l V i s i b i l i t y > < / L i n e S t y l e > < / S t y l e > < P l a c e m a r k > < n a m e > L i n e S t y l eE x a m p l e < / n a m e > < s t y l e U r l > # l i n e s t y l e E x a m p l e < / s t y l e U r l >
< L i n e S t r i n g > < e x t r u d e > 1 < / e x t r u d e > < t e s s e l l a t e > 1 < / t e s s e l l a t e > < c o o r d i n a t e s > 1 2 2 . 3 6 4 3 8 3 , 3 7 . 8 2 4 6 6 4 , 01 2 2 . 3 6 4 1 5 2 , 3 7 . 8 2 4 3 2 2 , 0 < / c o o r d i n a t e s > < / L i n e S t r i n g > < / P l a c e m a r k > < / D o c u m e n t > < / k m l >
Extends
< ColorStyle>
Contained By
<Style>
<Link>
Syntax
< L i n ki d = " I D " > < ! -s p e c i f i ct oL i n k> < h r e f > . . . < / h r e f > < r e f r e s h M o d e > o n C h a n g e < / r e f r e s h M o d e > < ! -s t r i n g>
< ! -r e f r e s h M o d e E n u m :o n C h a n g e ,o n I n t e r v a l ,o ro n E x p i r e> < r e f r e s h I n t e r v a l > 4 < / r e f r e s h I n t e r v a l > < ! -f l o a t> < v i e w R e f r e s h M o d e > n e v e r < / v i e w R e f r e s h M o d e > < ! -v i e w R e f r e s h M o d e E n u m :n e v e r ,o n S t o p ,o n R e q u e s t ,o n R e g i o n> < v i e w R e f r e s h T i m e > 4 < / v i e w R e f r e s h T i m e > < ! -f l o a t> < v i e w B o u n d S c a l e > 1 < / v i e w B o u n d S c a l e > < ! -f l o a t> < v i e w F o r m a t > B B O X = [ b b o x W e s t ] , [ b b o x S o u t h ] , [ b b o x E a s t ] , [ b b o x N o r t h ] < / v i e w F o r m a t > < ! -s t r i n g> < h t t p Q u e r y > . . . < / h t t p Q u e r y > < ! -s t r i n g> < / L i n k >
Description
<Link> specifies the location of any of the following: KML files fetched by network links Image files used in any Overlay (the <Icon> element specifies the image in an Overlay; <Icon> has the same fields as <Link>) Model files used in the <Model> element The file is conditionally loaded and refreshed, depending on the refresh parameters supplied here. Two different sets of refresh parameters can be specified: one set is based on time (<refreshMode> and <refreshInterval>) and one is based on the current "camera" view (<viewRefreshMode> and <viewRefreshTime>). In addition, Link specifies whether to scale the bounding box parameters that are sent to the server (<viewBoundScale> and provides a set of optional viewing parameters that can be sent to the server (<viewFormat>) as well as a set of optional parameters containing version and language information. When a file is fetched, the URL that is sent to the server is composed of three pieces of information: the href (Hypertext Reference) that specifies the file to load. an arbitrary format string that is created from (a) parameters that you specify in the <viewFormat> element or (b) bounding box parameters (this is the default and is used if no <viewFormat> element is included in the file). a second format string that is specified in the <httpQuery> element. If the file specified in <href> is a local file, the <viewFormat> and <httpQuery> elements are not used. The <Link> element replaces the <Url> element of <NetworkLink> contained in earlier KML releases and adds functionality for
the <Region> element (introduced in KML 2.1). In Google Earth releases 3.0 and earlier, the <Link> element is ignored.
Example
< N e t w o r k L i n k > < n a m e > N EU SR a d a r < / n a m e > < f l y T o V i e w > 1 < / f l y T o V i e w > < L i n k > < h r e f > h t t p : / / w w w . e x a m p l e . c o m / g e o t i f f / N E / M e r g e d R e f l e c t i v i t y Q C o m p o s i t e . k m l < / h r e f > < r e f r e s h M o d e > o n I n t e r v a l < / r e f r e s h M o d e > < r e f r e s h I n t e r v a l > 3 0 < / r e f r e s h I n t e r v a l > < v i e w R e f r e s h M o d e > o n S t o p < / v i e w R e f r e s h M o d e > < v i e w R e f r e s h T i m e > 7 < / v i e w R e f r e s h T i m e > < v i e w F o r m a t > B B O X = [ b b o x W e s t ] , [ b b o x S o u t h ] , [ b b o x E a s t ] , [ b b o x N o r t h ] ; C A M E R A = \ [ l o o k a t L o n ] , [ l o o k a t L a t ] , [ l o o k a t R a n g e ] , [ l o o k a t T i l t ] , [ l o o k a t H e a d i n g ] ; V I E W = \ [ h o r i z F o v ] , [ v e r t F o v ] , [ h o r i z P i x e l s ] , [ v e r t P i x e l s ] , [ t e r r a i n E n a b l e d ] < / v i e w F o r m a t > < / L i n k > < / N e t w o r k L i n k >
Extends
< Object>
Contained By
<Model> <NetworkLink>
See Also
<NetworkLinkControl> <Region>
<ListStyle>
Syntax
< L i s t S t y l ei d = " I D " > < ! -s p e c i f i ct oL i s t S t y l e> < l i s t I t e m T y p e > c h e c k < / l i s t I t e m T y p e >< ! -k m l : l i s t I t e m T y p e E n u m : c h e c k , c h e c k O f f O n l y , c h e c k H i d e C h i l d r e n , r a d i o F o l d e r> < b g C o l o r > f f f f f f f f < / b g C o l o r > < ! -k m l : c o l o r> < I t e m I c o n > < ! -0o rm o r eI t e m I c o ne l e m e n t s> < s t a t e > o p e n < / s t a t e > < ! -k m l : i t e m I c o n M o d e E n u m : o p e n ,c l o s e d ,e r r o r ,f e t c h i n g 0 ,f e t c h i n g 1 ,o rf e t c h i n g 2> < h r e f > . . . < / h r e f > < ! -a n y U R I> < / I t e m I c o n > < / L i s t S t y l e >
Description
Specifies how a Feature is displayed in the list view. The list view is a hierarchy of containers and children; in Google Earth, this is the Places panel.
<listItemType> Specifies how a Feature is displayed in the list view. Possible values are: check (default) - The Feature's visibility is tied to its item's checkbox. radioFolder - When specified for a Container, only one of the Container's items is visible at a time checkOffOnly - When specified for a Container or Network Link, prevents all items from being made visible at once that is, the user can turn everything in the Container or Network Link off but cannot turn everything on at the same time. This setting is useful for Containers or Network Links containing large amounts of data. checkHideChildren - Use a normal checkbox for visibility but do not display the Container or Network Link's children in the list view. A checkbox allows the user to toggle visibility of the child objects in the viewer. <bgColor> Background color for the Snippet. Color and opacity values are expressed in hexadecimal notation. The range of values for any one color is 0 to 255 (00 to ff). For alpha, 00 is fully transparent and ff is fully opaque. The order of expression is aabbggrr, where aa=alpha (00 to ff); bb=blue (00 to ff); gg=green (00 to ff); rr=red (00 to ff). For example, if you want to apply a blue color with 50 percent opacity to an overlay, you would specify the following: <color>7fff0000</color>, where alpha=0x7f, blue=0xff, green=0x00, and red=0x00. <ItemIcon> Icon used in the List view that reflects the state of a Folder or Link fetch. Icons associated with the open and closed modes are used for Folders and Network Links. Icons associated with the error and fetching0, fetching1, and fetching2 modes are used for Network Links. The following screen capture illustrates the Google Earth icons for these states:
<state> Specifies the current state of the NetworkLink or Folder. Possible values are open, closed, error, fetching0, fetching1, and fetching2. These values can be combined by inserting a space between two values (no comma). <href> Specifies the URI of the image used in the List View for the Feature.
Example
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < D o c u m e n t > < n a m e > L i s t S t y l e . k m l < / n a m e > < o p e n > 1 < / o p e n > < S t y l ei d = " b g C o l o r E x a m p l e " > < L i s t S t y l e > < b g C o l o r > f f 3 3 6 6 9 9 < / b g C o l o r > < / L i s t S t y l e > < / S t y l e > < S t y l ei d = " c h e c k H i d e C h i l d r e n E x a m p l e " > < L i s t S t y l e > < l i s t I t e m T y p e > c h e c k H i d e C h i l d r e n < / l i s t I t e m T y p e > < / L i s t S t y l e > < / S t y l e > < S t y l ei d = " r a d i o F o l d e r E x a m p l e " > < L i s t S t y l e > < l i s t I t e m T y p e > r a d i o F o l d e r < / l i s t I t e m T y p e > < / L i s t S t y l e > < / S t y l e > < F o l d e r > < n a m e > L i s t S t y l eE x a m p l e s < / n a m e > < o p e n > 1 < / o p e n > < F o l d e r > < n a m e > b g C o l o re x a m p l e < / n a m e >
< o p e n > 1 < / o p e n > < P l a c e m a r k > < n a m e > p l 1 < / n a m e > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 6 2 8 1 5 , 3 7 . 8 2 2 9 3 1 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < P l a c e m a r k > < n a m e > p l 2 < / n a m e > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 6 2 8 2 5 , 3 7 . 8 2 2 9 3 1 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < P l a c e m a r k > < n a m e > p l 3 < / n a m e > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 6 2 8 3 5 , 3 7 . 8 2 2 9 3 1 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < s t y l e U r l > # b g C o l o r E x a m p l e < / s t y l e U r l > < / F o l d e r > < F o l d e r > < n a m e > c h e c k H i d e C h i l d r e ne x a m p l e < / n a m e > < o p e n > 1 < / o p e n > < P l a c e m a r k > < n a m e > p l 4 < / n a m e > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 6 2 8 4 5 , 3 7 . 8 2 2 9 4 1 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < P l a c e m a r k > < n a m e > p l 5 < / n a m e > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 6 2 8 5 5 , 3 7 . 8 2 2 9 4 1 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < P l a c e m a r k > < n a m e > p l 6 < / n a m e > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 6 2 8 6 5 , 3 7 . 8 2 2 9 4 1 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < s t y l e U r l > # c h e c k H i d e C h i l d r e n E x a m p l e < / s t y l e U r l > < / F o l d e r > < F o l d e r > < n a m e > r a d i o F o l d e re x a m p l e < / n a m e > < o p e n > 1 < / o p e n > < P l a c e m a r k > < n a m e > p l 7 < / n a m e > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 6 2 8 7 5 , 3 7 . 8 2 2 9 5 1 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < P l a c e m a r k > < n a m e > p l 8 < / n a m e > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 6 2 8 8 5 , 3 7 . 8 2 2 9 5 1 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < P l a c e m a r k > < n a m e > p l 9 < / n a m e > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 6 2 8 9 5 , 3 7 . 8 2 2 9 5 1 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < s t y l e U r l > # r a d i o F o l d e r E x a m p l e < / s t y l e U r l > < / F o l d e r > < / F o l d e r > < / D o c u m e n t >
< / k m l >
Extends
< Object>
Contained By
<Style>
<LookAt>
Syntax
< L o o k A ti d = " I D " > < ! -i n h e r i t e df r o mA b s t r a c t V i e we l e m e n t>
< T i m e P r i m i t i v e > . . . < / T i m e P r i m i t i v e > < ! -g x : T i m e S p a no rg x : T i m e S t a m p> < g x : V i e w e r O p t i o n s > < o p t i o n >n a m e = ""t y p e = " b o o l e a n " > < ! -n a m e = " s t r e e t v i e w " ," h i s t o r i c a l i m a g e r y " ," s u n l i g h t " ,o r" < / o p t i o n > < / g x : V i e w e r O p t i o n s > < ! -s p e c i f i ct oL o o k A t> < l o n g i t u d e > 0 < / l o n g i t u d e > < ! -k m l : a n g l e 1 8 0> < l a t i t u d e > 0 < / l a t i t u d e > < ! -k m l : a n g l e 9 0> < a l t i t u d e > 0 < / a l t i t u d e > < ! -d o u b l e> < h e a d i n g > 0 < / h e a d i n g > < ! -k m l : a n g l e 3 6 0> < t i l t > 0 < / t i l t > < ! -k m l : a n g l e p o s 9 0> < r a n g e > < / r a n g e > < ! -d o u b l e> < a l t i t u d e M o d e > c l a m p T o G r o u n d < / a l t i t u d e M o d e > < ! k m l : a l t i t u d e M o d e E n u m : c l a m p T o G r o u n d ,r e l a t i v e T o G r o u n d ,a b s o l u t e> < ! -o r ,g x : a l t i t u d e M o d ec a nb es u b s t i t u t e d :c l a m p T o S e a F l o o r ,r e l a t i v e T o S e a F l o o r> < / L o o k A t >
Description
Defines a virtual camera that is associated with any element derived from Feature. The LookAt element positions the "camera" in relation to the object that is being viewed. In Google Earth, the view "flies to" this LookAt viewpoint when the user doubleclicks an item in the Places panel or double-clicks an icon in the 3D viewer.
<altitudeMode> Specifies how the <altitude> specified for the LookAt point is interpreted. Possible values are as follows: clampToGround - (default) Indicates to ignore the <altitude> specification and place the LookAt position on the ground. relativeToGround - Interprets the <altitude> as a value in meters above the ground. absolute - Interprets the <altitude> as a value in meters above sea level. <gx:altitudeMode> A KML extension in the Google extension namespace, allowing altitudes relative to the sea floor. Values are: relativeToSeaFloor - Interprets the <altitude> as a value in meters above the sea floor. If the point is above land rather than sea, the <altitude> will be interpreted as being above the ground. clampToSeaFloor - The <altitude> specification is ignored, and the LookAt will be positioned on the sea floor. If the point is on land rather than at sea, the LookAt will be positioned on the ground. This diagram illustrates the <range>, <tilt>, and <altitude> elements:
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " x m l n s : g x = " h t t p : / / w w w . g o o g l e . c o m / k m l / e x t / 2 . 2 " > < P l a c e m a r k > < n a m e > L o o k A t . k m l < / n a m e > < L o o k A t >
< g x : T i m e S t a m p > < w h e n > 1 9 9 4 < / w h e n > < / g x : T i m e S t a m p > < l o n g i t u d e > 1 2 2 . 3 6 3 < / l o n g i t u d e > < l a t i t u d e > 3 7 . 8 1 < / l a t i t u d e > < a l t i t u d e > 2 0 0 0 < / a l t i t u d e > < r a n g e > 5 0 0 < / r a n g e > < t i l t > 4 5 < / t i l t > < h e a d i n g > 0 < / h e a d i n g > < a l t i t u d e M o d e > r e l a t i v e T o G r o u n d < / a l t i t u d e M o d e > < / L o o k A t > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 6 3 , 3 7 . 8 2 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < / k m l >
Extends
< AbstractView>
Contained By
Any element derived from < Feature> <NetworkLinkControl>
<Model>
Syntax
< M o d e li d = " I D " > < ! -s p e c i f i ct oM o d e l> < a l t i t u d e M o d e > c l a m p T o G r o u n d < / a l t i t u d e M o d e > < ! -k m l : a l t i t u d e M o d e E n u m :c l a m p T o G r o u n d , r e l a t i v e T o G r o u n d , o ra b s o l u t e> < ! -o r ,s u b s t i t u t eg x : a l t i t u d e M o d e :c l a m p T o S e a F l o o r ,r e l a t i v e T o S e a F l o o r> < L o c a t i o n > < l o n g i t u d e > < / l o n g i t u d e >< ! -k m l : a n g l e 1 8 0> < l a t i t u d e > < / l a t i t u d e > < ! -k m l : a n g l e 9 0> < a l t i t u d e > 0 < / a l t i t u d e > < ! -d o u b l e> < / L o c a t i o n > < O r i e n t a t i o n > < h e a d i n g > 0 < / h e a d i n g > < ! -k m l : a n g l e 3 6 0> < t i l t > 0 < / t i l t > < ! -k m l : a n g l e p o s 1 8 0> < r o l l > 0 < / r o l l > < ! -k m l : a n g l e 1 8 0> < / O r i e n t a t i o n > < S c a l e > < x > 1 < / x > < ! -d o u b l e> < y > 1 < / y > < ! -d o u b l e> < z > 1 < / z > < ! -d o u b l e> < / S c a l e > < L i n k > . . . < / L i n k > < R e s o u r c e M a p > < A l i a s > < t a r g e t H r e f > . . . < / t a r g e t H r e f > < ! -a n y U R I> < s o u r c e H r e f > . . . < / s o u r c e H r e f > < ! -a n y U R I> < / A l i a s > < / R e s o u r c e M a p > < / M o d e l >
Description
A 3D object described in a COLLADA file (referenced in the <Link> tag). COLLADA files have a .dae file extension. Models are created in their own coordinate space and then located, positioned, and scaled in Google Earth. See the "Topics in KML" page on Models for more detail.
Google Earth supports the COLLADA common profile, with the following exceptions: Google Earth supports only triangles and lines as primitive types. The maximum number of triangles allowed is 21845. Google Earth does not support animation or skinning. Google Earth does not support external geometry references.
<Scale> Scales a model along the x, y, and z axes in the model's coordinate space. < S c a l e > < x > 2 . 5 < / x > < y > 2 . 5 < / y > < z > 3 . 5 < / z > < / S c a l e > <Link> Specifies the file to load and optional refresh parameters. See <Link>. <ResourceMap> Specifies 0 or more <Alias> elements, each of which is a mapping for the texture file path from the original Collada file to the KML or KMZ file that contains the Model. This element allows you to move and rename texture files without having to update the original Collada file that references those textures. One <ResourceMap> element can contain multiple mappings from different (source) Collada files into the same (target) KMZ file. < A l i a s > < t a r g e t H r e f > . . / i m a g e s / f o o . j p g < / t a r g e t H r e f > < s o u r c e H r e f > c : \ m y t e x t u r e s \ f o o . j p g < / s o u r c e H r e f > < / A l i a s > <Alias> contains a mapping from a <sourceHref> to a <targetHref>: <targetHref> Specifies the texture file to be fetched by Google Earth. This reference can be a relative reference to an image file within the .k mz archive, or it can be an absolute reference to the file (for example, a URL). <sourceHref> Is the path specified for the texture file in the Collada .dae file. In Google Earth, if this mapping is not supplied, the following rules are used to locate the textures referenced in the Collada (.dae) file: No path: If the texture name does not include a path, Google Earth looks for the texture in the same directory as the .dae file that references it. Relative path: If the texture name includes a relative path (for example, ../images/mytexture.jpg), Google Earth
interprets the path as being relative to the .dae file that references it. Absolute path: If the texture name is an absolute path (c:\mytexture.jpg) or a network path (for example, http://myserver.com/mytexture.jpg), Google Earth looks for the file in the specified location, regardless of where the .dae file is located.
Example
< M o d e li d = " k h M o d e l 5 4 3 " > < a l t i t u d e M o d e > r e l a t i v e T o G r o u n d < / a l t i t u d e M o d e > < L o c a t i o n > < l o n g i t u d e > 3 9 . 5 5 3 7 5 3 0 5 7 0 3 1 0 5 < / l o n g i t u d e > < l a t i t u d e > 1 1 8 . 9 8 1 3 2 2 0 1 6 8 4 5 6 < / l a t i t u d e > < a l t i t u d e > 1 2 2 3 < / a l t i t u d e > < / L o c a t i o n > < O r i e n t a t i o n > < h e a d i n g > 4 5 . 0 < / h e a d i n g > < t i l t > 1 0 . 0 < / t i l t > < r o l l > 0 . 0 < / r o l l > < / O r i e n t a t i o n > < S c a l e > < x > 1 . 0 < / x > < y > 1 . 0 < / y > < z > 1 . 0 < / z > < / S c a l e > < L i n k > < h r e f > h o u s e . d a e < / h r e f > < r e f r e s h M o d e > o n c e < / r e f r e s h M o d e > < / L i n k > < R e s o u r c e M a p > < A l i a s > < t a r g e t H r e f > . . / f i l e s / C U M a c k y C e n t e r S t a i r s n o C u l l i n g . j p g < / t a r g e t H r e f > < s o u r c e H r e f > C U M a c k y C e n t e r S t a i r s n o C u l l i n g . j p g < / s o u r c e H r e f > < / A l i a s > < A l i a s > < t a r g e t H r e f > . . / f i l e s / C U M a c k y 4 s i d e t u r r e t n o C u l l i n g . j p g < / t a r g e t H r e f > < s o u r c e H r e f > C U M a c k y 4 s i d e t u r r e t n o C u l l i n g . j p g < / s o u r c e H r e f > < / A l i a s > < A l i a s > < t a r g e t H r e f > . . / f i l e s / C U M a c k y B a c k N o r t h n o C u l l i n g . j p g < / t a r g e t H r e f > < s o u r c e H r e f > C U M a c k y B a c k N o r t h n o C u l l i n g . j p g < / s o u r c e H r e f > < / A l i a s > < / R e s o u r c e M a p > < / M o d e l >
Extends
<Geometry>
Contained By
<MultiGeometry> <Placemark>
<MultiGeometry>
Syntax
< M u l t i G e o m e t r yi d = " I D " > < ! -s p e c i f i ct oM u l t i G e o m e t r y> < ! -0o rm o r eG e o m e t r ye l e m e n t s> < / M u l t i G e o m e t r y >
Description
A container for zero or more geometry primitives associated with the same feature. Note: The <GeometryCollection> tag has been deprecated. Use <MultiGeometry> instead.
Example
< P l a c e m a r k > < n a m e > S FM a r i n aH a r b o rM a s t e r < / n a m e > < v i s i b i l i t y > 0 < / v i s i b i l i t y > < M u l t i G e o m e t r y > < L i n e S t r i n g > < ! -n o r t hw a l l> < c o o r d i n a t e s > 1 2 2 . 4 4 2 5 5 8 7 9 3 0 4 4 4 , 3 7 . 8 0 6 6 6 4 1 8 6 0 7 3 2 3 , 0 1 2 2 . 4 4 2 8 3 7 9 5 9 4 7 6 8 , 3 7 . 8 0 6 6 3 5 7 8 3 2 3 0 9 3 , 0 < / c o o r d i n a t e s > < / L i n e S t r i n g > < L i n e S t r i n g > < ! -s o u t hw a l l> < c o o r d i n a t e s > 1 2 2 . 4 4 2 5 5 0 9 7 7 0 5 6 6 , 3 7 . 8 0 6 6 2 5 8 8 0 6 1 2 0 5 , 0 1 2 2 . 4 4 2 8 3 4 0 5 3 0 6 1 7 , 3 7 . 8 0 6 5 9 9 9 4 9 3 0 0 9 , 0 < / c o o r d i n a t e s > < / L i n e S t r i n g > < / M u l t i G e o m e t r y > < / P l a c e m a r k >
Extends
<Geometry>
Contained By
<MultiGeometry> <Placemark>
<gx:MultiTrack>
This element is an extension of the OGC KML 2.2 standard and is supported in Google Earth 5.2 and later. Learn more
Syntax
< g x : M u l t i T r a c ki d = " I D " > < ! -s p e c i f i ct oM u l t i T r a c k> < a l t i t u d e M o d e > c l a m p T o G r o u n d < / a l t i t u d e M o d e > < ! -k m l : a l t i t u d e M o d e E n u m :c l a m p T o G r o u n d ,r e l a t i v e T o G r o u n d ,o ra b s o l u t e> < ! -o r ,s u b s t i t u t eg x : a l t i t u d e M o d e :c l a m p T o S e a F l o o r ,r e l a t i v e T o S e a F l o o r> < g x : i n t e r p o l a t e > 0 < g x : i n t e r p o l a t e > < ! -b o o l e a n> < g x : T r a c k > . . . < / g x : T r a c k > < ! -o n eo rm o r eg x : T r a c ke l e m e n t s> < / g x : M u l t i T r a c k >
Description
A multi-track element is used to combine multiple track elements into a single conceptual unit. For example, suppose you collect GPS data for a day's bike ride that includes several rest stops and a stop for lunch. Because of the interruptions in time, one bike ride might appear as four different tracks when the times and positions are plotted. Grouping these <gx:Track> elements into one <gx:MultiTrack> container causes them to be displayed in Google Earth as sections of a single path. When
the icon reaches the end of one segment, it moves to the beginning of the next segment. The <gx:interpolate> element specifies whether to stop at the end of one track and jump immediately to the start of the next one, or to interpolate the missing values between the two tracks.
Contains
<gx:Track>
<NetworkLink>
Syntax
< N e t w o r k L i n ki d = " I D " > < ! -i n h e r i t e df r o mF e a t u r ee l e m e n t> < n a m e > . . . < / n a m e > < v i s i b i l i t y > 1 < / v i s i b i l i t y > < ! -b o o l e a n> < o p e n > 0 < / o p e n > < ! -b o o l e a n> < a t o m : a u t h o r > . . . < a t o m : a u t h o r > < ! -x m l n s : a t o m> < a t o m : l i n kh r e f = "" / > < ! -x m l n s : a t o m> < a d d r e s s > . . . < / a d d r e s s > < ! -s t r i n g> < x a l : A d d r e s s D e t a i l s > . . . < / x a l : A d d r e s s D e t a i l s > < ! -x m l n s : x a l> < p h o n e N u m b e r > . . . < / p h o n e N u m b e r > < ! -s t r i n g> < S n i p p e tm a x L i n e s = " 2 " > . . . < / S n i p p e t > < d e s c r i p t i o n > . . . < / d e s c r i p t i o n > < A b s t r a c t V i e w > . . . < / A b s t r a c t V i e w > < T i m e P r i m i t i v e > . . . < / T i m e P r i m i t i v e > < s t y l e U r l > . . . < / s t y l e U r l > < S t y l e S e l e c t o r > . . . < / S t y l e S e l e c t o r > < R e g i o n > . . . < / R e g i o n > < M e t a d a t a > . . . < / M e t a d a t a > < E x t e n d e d D a t a > . . . < / E x t e n d e d D a t a > < ! -a n y U R I> < ! -s t r i n g> < ! -s t r i n g> < ! -C a m e r ao rL o o k A t> < ! -s t r i n g>
< ! -s p e c i f i ct oN e t w o r k L i n k> < r e f r e s h V i s i b i l i t y > 0 < / r e f r e s h V i s i b i l i t y >< ! -b o o l e a n> < f l y T o V i e w > 0 < / f l y T o V i e w > < ! -b o o l e a n> < L i n k > . . . < / L i n k > < / N e t w o r k L i n k >
Description
References a KML file or KMZ archive on a local or remote network. Use the <Link> element to specify the location of the KML file. Within that element, you can define the refresh options for updating the file, based on time and camera change. NetworkLinks can be used in combination with Regions to handle very large datasets efficiently.
Example
< D o c u m e n t > < v i s i b i l i t y > 1 < / v i s i b i l i t y > < N e t w o r k L i n k > < n a m e > N EU SR a d a r < / n a m e > < r e f r e s h V i s i b i l i t y > 1 < / r e f r e s h V i s i b i l i t y > < f l y T o V i e w > 1 < / f l y T o V i e w > < L i n k > . . . < / L i n k > < / N e t w o r k L i n k > < / D o c u m e n t >
Extends
< Feature>
Contained By
any element derived from < Container>
<NetworkLinkControl>
Syntax
< N e t w o r k L i n k C o n t r o l > < m i n R e f r e s h P e r i o d > 0 < / m i n R e f r e s h P e r i o d > < m a x S e s s i o n L e n g t h > 1 < / m a x S e s s i o n L e n g t h > < c o o k i e > . . . < / c o o k i e > < m e s s a g e > . . . < / m e s s a g e > < l i n k N a m e > . . . < / l i n k N a m e > < l i n k D e s c r i p t i o n > . . . < / l i n k D e s c r i p t i o n > < l i n k S n i p p e tm a x L i n e s = " 2 " > . . . < / l i n k S n i p p e t > < e x p i r e s > . . . < / e x p i r e s > < U p d a t e > . . . < / U p d a t e > < A b s t r a c t V i e w > . . . < / A b s t r a c t V i e w > < / N e t w o r k L i n k C o n t r o l >
< ! -f l o a t> < ! -f l o a t> < ! -s t r i n g> < ! -s t r i n g> < ! -s t r i n g> < ! -s t r i n g> < ! -s t r i n g> < ! -k m l : d a t e T i m e> < ! -C h a n g e , C r e a t e , D e l e t e> < ! -L o o k A to rC a m e r a>
Description
Controls the behavior of files fetched by a <NetworkLink>.
Example
< k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < N e t w o r k L i n k C o n t r o l > < m e s s a g e > T h i si sap o p u pm e s s a g e .Y o uw i l lo n l ys e et h i so n c e < / m e s s a g e > < c o o k i e > c o o k i e = s o m e t e x t < / c o o k i e > < l i n k N a m e > N e wK M Lf e a t u r e s < / l i n k N a m e > < l i n k D e s c r i p t i o n > < ! [ C D A T A [ K M Ln o wh a sn e wf e a t u r e sa v a i l a b l e ! ] ] > < / l i n k D e s c r i p t i o n > < / N e t w o r k L i n k C o n t r o l > < / k m l >
Extends
This is a direct child of the <kml> element.
Contained By
<kml>
See Also
<Update>
<NetworkLink>
<Object>
Syntax
< ! -a b s t r a c te l e m e n t ;d on o tc r e a t e> < ! -O b j e c ti d = " I D "t a r g e t I d = " N C N a m e "> < ! -/ O b j e c t >>
Description
This is an abstract base class and cannot be used directly in a KML file. It provides the id attribute, which allows unique identification of a KML element, and the targetId attribute, which is used to reference objects that have already been loaded into Google Earth. The id attribute must be assigned if the <Update> mechanism is to be used.
<Overlay>
Syntax
< ! -a b s t r a c te l e m e n t ;d on o tc r e a t e> < ! -O v e r l a yi d = " I D "> < ! -i n h e r i t e df r o mF e a t u r ee l e m e n t> < n a m e > . . . < / n a m e > < v i s i b i l i t y > 1 < / v i s i b i l i t y > < o p e n > 0 < / o p e n > < a t o m : a u t h o r > . . . < a t o m : a u t h o r > < a t o m : l i n kh r e f = "" / > < ! -s t r i n g> < ! -b o o l e a n> < ! -b o o l e a n> < ! -x m l n s : a t o m> < ! -x m l n s : a t o m>
< ! -G r o u n d O v e r l a y , S c r e e n O v e r l a y>
< a d d r e s s > . . . < / a d d r e s s > < ! -s t r i n g> < x a l : A d d r e s s D e t a i l s > . . . < / x a l : A d d r e s s D e t a i l s > < ! -x m l n s : x a l> < p h o n e N u m b e r > . . . < / p h o n e N u m b e r > < ! -s t r i n g> < S n i p p e tm a x L i n e s = " 2 " > . . . < / S n i p p e t > < d e s c r i p t i o n > . . . < / d e s c r i p t i o n > < A b s t r a c t V i e w > . . . < / A b s t r a c t V i e w > < T i m e P r i m i t i v e > . . . < / T i m e P r i m i t i v e > < s t y l e U r l > . . . < / s t y l e U r l > < S t y l e S e l e c t o r > . . . < / S t y l e S e l e c t o r > < R e g i o n > . . . < / R e g i o n > < M e t a d a t a > . . . < / M e t a d a t a > < E x t e n d e d D a t a > . . . < / E x t e n d e d D a t a > < ! -s p e c i f i ct oO v e r l a y> < c o l o r > f f f f f f f f < / c o l o r > < d r a w O r d e r > 0 < / d r a w O r d e r > < I c o n > < h r e f > . . . < / h r e f > < / I c o n > < ! -/ O v e r l a y> < ! -a n y U R I> < ! -s t r i n g> < ! -s t r i n g> < ! -C a m e r ao rL o o k A t>
Description
This is an abstract element and cannot be used directly in a KML file. < Overlay> is the base type for image overlays drawn on the planet surface or on the screen. <Icon> specifies the image to use and can be configured to reload images based on a timer or by camera changes. This element also includes specifications for stacking order of multiple overlays and for adding color and transparency values to the base image.
fully opaque. For example, if you want to apply a blue color with 50 percent opacity to an overlay, you would specify the following: <color>7fff0000</color> Note: The <geomColor> element has been deprecated. Use <color> instead. <drawOrder> This element defines the stacking order for the images in overlapping overlays. Overlays with higher <drawOrder> values are drawn on top of overlays with lower <drawOrder> values. <Icon> Defines the image associated with the Overlay. The <href> element defines the location of the image to be used as the Overlay. This location can be either on a local file system or on a web server. If this element is omitted or contains no <href>, a rectangle is drawn using the color and size defined by the ground or screen overlay. < I c o n > < h r e f > i c o n . j p g < / h r e f > < / I c o n >
Extends
<Feature>
Extended By
<GroundOverlay> <PhotoOverlay> <ScreenOverlay>
<PhotoOverlay>
Syntax < P h o t o O v e r l a y > < ! -i n h e r i t e df r o mF e a t u r ee l e m e n t> < n a m e > . . . < / n a m e > < v i s i b i l i t y > 1 < / v i s i b i l i t y > < o p e n > 0 < / o p e n > < a t o m : a u t h o r > . . . < a t o m : a u t h o r > < a t o m : l i n kh r e f = "" / > < ! -s t r i n g> < ! -b o o l e a n> < ! -b o o l e a n> < ! -x m l n s : a t o m> < ! -x m l n s : a t o m>
< a d d r e s s > . . . < / a d d r e s s > < ! -s t r i n g> < x a l : A d d r e s s D e t a i l s > . . . < / x a l : A d d r e s s D e t a i l s > < ! -x m l n s : x a l> < p h o n e N u m b e r > . . . < / p h o n e N u m b e r > < ! -s t r i n g> < S n i p p e tm a x L i n e s = " 2 " > . . . < / S n i p p e t > < d e s c r i p t i o n > . . . < / d e s c r i p t i o n > < A b s t r a c t V i e w > . . . < / A b s t r a c t V i e w > < T i m e P r i m i t i v e > . . . < / T i m e P r i m i t i v e > < s t y l e U r l > . . . < / s t y l e U r l > < S t y l e S e l e c t o r > . . . < / S t y l e S e l e c t o r > < R e g i o n > . . . < / R e g i o n > < M e t a d a t a > . . . < / M e t a d a t a > < E x t e n d e d D a t a > . . . < / E x t e n d e d D a t a > < ! -a n y U R I> < ! -s t r i n g> < ! -s t r i n g> < ! -C a m e r ao rL o o k A t>
< ! -i n h e r i t e df r o mO v e r l a ye l e m e n t> < c o l o r > f f f f f f f f < / c o l o r > < ! -k m l : c o l o r> < d r a w O r d e r > 0 < / d r a w O r d e r > < ! -i n t> < I c o n > < h r e f > . . . < / h r e f > < ! -a n y U R I> . . . < / I c o n > < ! -s p e c i f i ct oP h o t o O v e r l a y> < r o t a t i o n > 0 < / r o t a t i o n > < V i e w V o l u m e > < l e f t F o v > 0 < / l e f t F o v > < r i g h t F o v > 0 < / r i g h t F o v >
< b o t t o m F o v > 0 < / b o t t o m F o v > < t o p F o v > 0 < / t o p F o v > < n e a r > 0 < / n e a r > < / V i e w V o l u m e > < I m a g e P y r a m i d > < t i l e S i z e > 2 5 6 < / t i l e S i z e >
< ! -i n t>
< m a x W i d t h > . . . < / m a x W i d t h > < ! -i n t> < m a x H e i g h t > . . . < / m a x H e i g h t > < ! -i n t> < g r i d O r i g i n > l o w e r L e f t < / g r i d O r i g i n >< ! -l o w e r L e f to ru p p e r L e f t> < / I m a g e P y r a m i d > < P o i n t > < c o o r d i n a t e s > . . . < / c o o r d i n a t e s > < ! -l o n , l a t [ , a l t ]> < / P o i n t > < s h a p e > r e c t a n g l e < / s h a p e > < ! -k m l : s h a p e> < / P h o t o O v e r l a y >
Description
The <PhotoOverlay> element allows you to geographically locate a photograph on the Earth and to specify viewing parameters for this PhotoOverlay. The PhotoOverlay can be a simple 2D rectangle, a partial or full cylinder, or a sphere (for spherical panoramas). The overlay is placed at the specified location and oriented toward the viewpoint. Because <PhotoOverlay> is derived from <Feature>, it can contain one of the two elements derived from <AbstractView> either <Camera> or <LookAt>. The Camera (or LookAt) specifies a viewpoint and a viewing direction (also referred to as a view vector). The PhotoOverlay is positioned in relation to the viewpoint. Specifically, the plane of a 2D rectangular image is orthogonal (at right angles to) the view vector. The normal of this planethat is, its front, which is the part with the photois oriented toward the viewpoint. The URL for the PhotoOverlay image is specified in the <Icon> tag, which is inherited from <Overlay>. The <Icon> tag must contain an <href> element that specifies the image file to use for the PhotoOverlay. In the case of a very large image, the <href> is a special URL that indexes into a pyramid of images of varying resolutions (see ImagePyramid). For more information, see the "Topics in KML" page on PhotoOverlay.
The following diagrams show the four field-of-view angles within this pyramid:
<ImagePyramid> For very large images, you'll need to construct an image pyramid, which is a hierarchical set of images, each of which is an increasingly lower resolution version of the original image. Each image in the pyramid is subdivided into tiles, so that only the portions in view need to be loaded. Google Earth calculates the current viewpoint and loads the tiles that are appropriate to the user's distance from the image. As the viewpoint moves closer to the PhotoOverlay, Google Earth loads higher resolution tiles. Since all the pixels in the original image can't be viewed on the screen at once, this preprocessing allows Google Earth to achieve maximum performance because it loads only the portions of the image that are in view, and only the pixel details that can be discerned by the user at the current viewpoint. When you specify an image pyramid, you also modify the <href> in the <Icon> element to include specifications for which tiles to load. <tileSize> Size of the tiles, in pixels. Tiles must be square, and <tileSize> must be a power of 2. A tile size of 256 (the default) or 512 is recommended. The original image is divided into tiles of this size, at varying resolutions. <maxWidth> Width in pixels of the original image. <maxHeight> Height in pixels of the original image. <gridOrigin> Specifies where to begin numbering the tiles in each layer of the pyramid. A value of l o w e r L e f tspecifies that row 1, column 1 of each layer is in the bottom left corner of the grid. <Point> The <Point> element acts as a <Point> inside a <Placemark> element. It draws an icon to mark the position of the PhotoOverlay. The icon drawn is specified by the <styleUrl> and <StyleSelector> fields, just as it is for <Placemark>. <shape> The PhotoOverlay is projected onto the <shape>. The <shape> can be one of the following: rectangle (default) - for an ordinary photo
cylinder - for panoramas, which can be either partial or full cylinders sphere - for spherical panoramas
Example
< P h o t o O v e r l a y > < ! -F e a t u r ee l e m e n t s> < n a m e > As i m p l en o n p y r a m i d a lp h o t o < / n a m e > < d e s c r i p t i o n > H i g ha b o v et h eo c e a n < / d e s c r i p t i o n > < ! -O v e r l a ye l e m e n t s> < I c o n > < ! -As i m p l en o r m a lj p e gi m a g e> < h r e f > s m a l l p h o t o . j p g < / h r e f > < / I c o n > < ! -P h o t o O v e r l a ye l e m e n t s> < ! -d e f a u l t :< r o t a t i o n >d e f a u l ti s0> < V i e w V o l u m e > < n e a r > 1 0 0 0 < / n e a r > < l e f t F o v > 6 0 < / l e f t F o v > < r i g h t F o v > 6 0 < / r i g h t F o v > < b o t t o m F o v > 4 5 < / b o t t o m F o v > < t o p F o v > 4 5 < / t o p F o v > < / V i e w V o l u m e > < ! -i fn oI m a g e P y r a m i do n l yl e v e l0i ss h o w n , f i n ef o ran o n p y r a m i d a li m a g e> < P o i n t > < c o o r d i n a t e s > 1 , 1 < / c o o r d i n a t e s > < / P o i n t > < ! -d e f a u l t :< s h a p e >> < / P h o t o O v e r l a y >
Extends
<Overlay>
Contained By
<Folder>, <Document>, or <kml>
<Placemark>
Syntax
< P l a c e m a r ki d = " I D " > < ! -i n h e r i t e df r o mF e a t u r ee l e m e n t> < n a m e > . . . < / n a m e > < v i s i b i l i t y > 1 < / v i s i b i l i t y > < o p e n > 0 < / o p e n > < a t o m : a u t h o r > . . . < a t o m : a u t h o r > < a t o m : l i n kh r e f = "" / > < ! -s t r i n g> < ! -b o o l e a n> < ! -b o o l e a n> < ! -x m l n s : a t o m> < ! -x m l n s : a t o m>
< a d d r e s s > . . . < / a d d r e s s > < ! -s t r i n g> < x a l : A d d r e s s D e t a i l s > . . . < / x a l : A d d r e s s D e t a i l s > < ! -x m l n s : x a l> < p h o n e N u m b e r > . . . < / p h o n e N u m b e r > < ! -s t r i n g> < S n i p p e tm a x L i n e s = " 2 " > . . . < / S n i p p e t > < d e s c r i p t i o n > . . . < / d e s c r i p t i o n > < A b s t r a c t V i e w > . . . < / A b s t r a c t V i e w > < T i m e P r i m i t i v e > . . . < / T i m e P r i m i t i v e > < s t y l e U r l > . . . < / s t y l e U r l > < S t y l e S e l e c t o r > . . . < / S t y l e S e l e c t o r > < R e g i o n > . . . < / R e g i o n > < M e t a d a t a > . . . < / M e t a d a t a > < E x t e n d e d D a t a > . . . < / E x t e n d e d D a t a > < ! -a n y U R I> < ! -s t r i n g> < ! -s t r i n g> < ! -C a m e r ao rL o o k A t>
Description
A Placemark is a Feature with associated Geometry. In Google Earth, a Placemark appears as a list item in the Places panel. A Placemark with a Point has an icon associated with it that marks a point on the Earth in the 3D viewer. (In the Google Earth 3D viewer, a Point Placemark is the only object you can click or roll over. Other Geometry objects do not have an icon in the 3D viewer. To give the user something to click in the 3D viewer, you would need to create a MultiGeometry object that contains both a Point and the other Geometry object.)
Example
< P l a c e m a r k > < n a m e > G o o g l eE a r t h-N e wP l a c e m a r k < / n a m e > < d e s c r i p t i o n > S o m eD e s c r i p t i v et e x t . < / d e s c r i p t i o n > < L o o k A t > < l o n g i t u d e > 9 0 . 8 6 8 7 9 8 4 7 6 6 9 9 7 4 < / l o n g i t u d e > < l a t i t u d e > 4 8 . 2 5 3 3 0 3 8 3 6 0 1 2 9 9 < / l a t i t u d e > < r a n g e > 4 4 0 . 8 < / r a n g e > < t i l t > 8 . 3 < / t i l t > < h e a d i n g > 2 . 7 < / h e a d i n g > < / L o o k A t > < P o i n t > < c o o r d i n a t e s > 9 0 . 8 6 9 4 8 9 4 3 4 7 3 1 1 8 , 4 8 . 2 5 4 5 0 0 9 3 1 9 5 5 4 6 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k >
Extends
< Feature>
Contained By
<Document> <Folder>
See Also
<Icon>
<Point>
Syntax
< P o i n ti d = " I D " > < ! -s p e c i f i ct oP o i n t> < e x t r u d e > 0 < / e x t r u d e > < ! -b o o l e a n> < a l t i t u d e M o d e > c l a m p T o G r o u n d < / a l t i t u d e M o d e > < ! -k m l : a l t i t u d e M o d e E n u m :c l a m p T o G r o u n d ,r e l a t i v e T o G r o u n d ,o ra b s o l u t e> < ! -o r ,s u b s t i t u t eg x : a l t i t u d e M o d e :c l a m p T o S e a F l o o r ,r e l a t i v e T o S e a F l o o r> < c o o r d i n a t e s > . . . < / c o o r d i n a t e s > < / P o i n t > < ! -l o n , l a t [ , a l t ]>
Description
A geographic location defined by longitude, latitude, and (optional) altitude. When a Point is contained by a Placemark, the point itself determines the position of the Placemark's name and icon. When a Point is extruded, it is connected to the ground with a line. This "tether" uses the current LineStyle.
Example
< P o i n t > < c o o r d i n a t e s > 9 0 . 8 6 9 4 8 9 4 3 4 7 3 1 1 8 , 4 8 . 2 5 4 5 0 0 9 3 1 9 5 5 4 6 < / c o o r d i n a t e s > < / P o i n t >
Extends
< Geometry>
Contained By
<MultiGeometry> <Placemark>
<Polygon>
Syntax
< P o l y g o ni d = " I D " >
< ! -b o o l e a n>
< t e s s e l l a t e > 0 < / t e s s e l l a t e > < ! -b o o l e a n> < a l t i t u d e M o d e > c l a m p T o G r o u n d < / a l t i t u d e M o d e > < ! -k m l : a l t i t u d e M o d e E n u m :c l a m p T o G r o u n d ,r e l a t i v e T o G r o u n d ,o ra b s o l u t e> < ! -o r ,s u b s t i t u t eg x : a l t i t u d e M o d e :c l a m p T o S e a F l o o r ,r e l a t i v e T o S e a F l o o r> < o u t e r B o u n d a r y I s > < L i n e a r R i n g > < c o o r d i n a t e s > . . . < / c o o r d i n a t e s > < ! -l o n , l a t [ , a l t ]> < / L i n e a r R i n g > < / o u t e r B o u n d a r y I s > < i n n e r B o u n d a r y I s > < L i n e a r R i n g > < c o o r d i n a t e s > . . . < / c o o r d i n a t e s > < ! -l o n , l a t [ , a l t ]> < / L i n e a r R i n g > < / i n n e r B o u n d a r y I s > < / P o l y g o n >
Description
A Polygon is defined by an outer boundary and 0 or more inner boundaries. The boundaries, in turn, are defined by LinearRings. When a Polygon is extruded, its boundaries are connected to the ground to form additional polygons, which gives the appearance of a building or a box. Extruded Polygons use <PolyStyle> for their color, color mode, and fill. The <coordinates> for polygons must be specified in counterclockwise order. Polygons follow the "right-hand rule," which states that if you place the fingers of your right hand in the direction in which the coordinates are specified, your thumb points in the general direction of the geometric normal for the polygon. (In 3D graphics, the geometric normal is used for lighting and points away from the front face of the polygon.) Since Google Earth fills only the front face of polygons, you will achieve the desired effect only when the coordinates are specified in the proper order. Otherwise, the polygon will be gray. Note: In Google Earth, a Polygon with an <altitudeMode> of clampToGround follows lines of constant bearing; however, a LinearRing (by itself) with an <altitudeMode> of clampToGround follows great circle lines.
<outerBoundaryIs> (required) Contains a <LinearRing> element. <innerBoundaryIs> Contains a <LinearRing> element. A Polygon can contain multiple <innerBoundaryIs> elements, which create multiple cutouts inside the Polygon.
Example
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < D o c u m e n t > < n a m e > P o l y g o n . k m l < / n a m e > < o p e n > 0 < / o p e n > < P l a c e m a r k > < n a m e > h o l l o wb o x < / n a m e > < P o l y g o n > < e x t r u d e > 1 < / e x t r u d e > < a l t i t u d e M o d e > r e l a t i v e T o G r o u n d < / a l t i t u d e M o d e > < o u t e r B o u n d a r y I s > < L i n e a r R i n g > < c o o r d i n a t e s > 1 2 2 . 3 6 6 2 7 8 , 3 7 . 8 1 8 8 4 4 , 3 0 1 2 2 . 3 6 5 2 4 8 , 3 7 . 8 1 9 2 6 7 , 3 0 1 2 2 . 3 6 5 6 4 0 , 3 7 . 8 1 9 8 6 1 , 3 0 1 2 2 . 3 6 6 6 6 9 , 3 7 . 8 1 9 4 2 9 , 3 0 1 2 2 . 3 6 6 2 7 8 , 3 7 . 8 1 8 8 4 4 , 3 0 < / c o o r d i n a t e s > < / L i n e a r R i n g > < / o u t e r B o u n d a r y I s > < i n n e r B o u n d a r y I s > < L i n e a r R i n g > < c o o r d i n a t e s > 1 2 2 . 3 6 6 2 1 2 , 3 7 . 8 1 8 9 7 7 , 3 0 1 2 2 . 3 6 5 4 2 4 , 3 7 . 8 1 9 2 9 4 , 3 0 1 2 2 . 3 6 5 7 0 4 , 3 7 . 8 1 9 7 3 1 , 3 0 1 2 2 . 3 6 6 4 8 8 , 3 7 . 8 1 9 4 0 2 , 3 0 1 2 2 . 3 6 6 2 1 2 , 3 7 . 8 1 8 9 7 7 , 3 0 < / c o o r d i n a t e s > < / L i n e a r R i n g > < / i n n e r B o u n d a r y I s > < / P o l y g o n > < / P l a c e m a r k > < / D o c u m e n t > < / k m l >
Extends
< Geometry>
Contained By
<MultiGeometry> <Placemark>
<PolyStyle>
Syntax
< P o l y S t y l ei d = " I D " > < ! -i n h e r i t e df r o mC o l o r S t y l e> < c o l o r > f f f f f f f f < / c o l o r > < ! -k m l : c o l o r> < c o l o r M o d e > n o r m a l < / c o l o r M o d e > < ! -s p e c i f i ct oP o l y S t y l e> < ! -k m l : c o l o r M o d e E n u m :n o r m a lo rr a n d o m>
< f i l l > 1 < / f i l l > < o u t l i n e > 1 < / o u t l i n e > < / P o l y S t y l e > Description
Specifies the drawing style for all polygons, including polygon extrusions (which look like the walls of buildings) and line extrusions (which look like solid fences).
Example
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < D o c u m e n t > < n a m e > P o l y g o n S t y l e . k m l < / n a m e > < o p e n > 1 < / o p e n > < S t y l ei d = " e x a m p l e P o l y S t y l e " > < P o l y S t y l e > < c o l o r > f f 0 0 0 0 c c < / c o l o r > < c o l o r M o d e > r a n d o m < / c o l o r M o d e > < / P o l y S t y l e > < / S t y l e > < P l a c e m a r k > < n a m e > h o l l o wb o x < / n a m e > < s t y l e U r l > # e x a m p l e P o l y S t y l e < / s t y l e U r l > < P o l y g o n > < e x t r u d e > 1 < / e x t r u d e > < a l t i t u d e M o d e > r e l a t i v e T o G r o u n d < / a l t i t u d e M o d e > < o u t e r B o u n d a r y I s > < L i n e a r R i n g > < c o o r d i n a t e s > 1 2 2 . 3 6 6 2 7 8 4 4 6 5 2 2 6 , 3 7 . 8 1 8 8 4 4 2 7 7 7 2 0 8 1 , 3 0 1 2 2 . 3 6 5 2 4 8 0 6 8 4 7 7 1 , 3 7 . 8 1 9 2 6 7 7 7 0 1 0 5 5 5 , 3 0 1 2 2 . 3 6 5 6 4 0 2 2 2 4 5 5 , 3 7 . 8 1 9 8 6 1 2 6 2 8 6 5 1 9 , 3 0 1 2 2 . 3 6 6 6 6 9 3 7 9 2 5 , 3 7 . 8 1 9 4 2 9 8 7 7 5 3 4 8 1 , 3 0 1 2 2 . 3 6 6 2 7 8 4 4 6 5 2 2 6 , 3 7 . 8 1 8 8 4 4 2 7 7 7 2 0 8 1 , 3 0 < / c o o r d i n a t e s > < / L i n e a r R i n g > < / o u t e r B o u n d a r y I s > < i n n e r B o u n d a r y I s > < L i n e a r R i n g > < c o o r d i n a t e s > 1 2 2 . 3 6 6 2 1 2 5 9 3 9 1 8 , 3 7 . 8 1 8 9 7 7 1 9 0 8 3 8 0 8 , 3 0 1 2 2 . 3 6 5 4 2 4 1 7 3 3 1 8 8 , 3 7 . 8 1 9 2 9 4 5 0 9 9 2 0 1 4 , 3 0 1 2 2 . 3 6 5 7 0 4 8 5 1 7 8 2 7 , 3 7 . 8 1 9 7 3 1 7 5 3 0 2 6 6 3 , 3 0 1 2 2 . 3 6 6 4 8 8 2 4 6 5 8 5 4 , 3 7 . 8 1 9 4 0 2 4 9 2 9 1 7 7 3 , 3 0 1 2 2 . 3 6 6 2 1 2 5 9 3 9 1 8 , 3 7 . 8 1 8 9 7 7 1 9 0 8 3 8 0 8 , 3 0 < / c o o r d i n a t e s > < / L i n e a r R i n g > < / i n n e r B o u n d a r y I s > < / P o l y g o n > < / P l a c e m a r k > < / D o c u m e n t > < / k m l >
Extends
< ColorStyle>
Contained By
<Style>
<Region>
Syntax
< R e g i o ni d = " I D " > < L a t L o n A l t B o x > < n o r t h > < / n o r t h > < ! -r e q u i r e d ;k m l : a n g l e 9 0> < s o u t h > < / s o u t h > < ! -r e q u i r e d ;k m l : a n g l e 9 0> < e a s t > < / e a s t > < ! -r e q u i r e d ;k m l : a n g l e 1 8 0> < w e s t > < / w e s t > < ! -r e q u i r e d ;k m l : a n g l e 1 8 0> < m i n A l t i t u d e > 0 < / m i n A l t i t u d e > < ! -f l o a t> < m a x A l t i t u d e > 0 < / m a x A l t i t u d e > < ! -f l o a t> < a l t i t u d e M o d e > c l a m p T o G r o u n d < / a l t i t u d e M o d e > < ! -k m l : a l t i t u d e M o d e E n u m :c l a m p T o G r o u n d ,r e l a t i v e T o G r o u n d ,o ra b s o l u t e> < ! -o r ,s u b s t i t u t eg x : a l t i t u d e M o d e :c l a m p T o S e a F l o o r ,r e l a t i v e T o S e a F l o o r> < / L a t L o n A l t B o x > < L o d > < m i n L o d P i x e l s > 0 < / m i n L o d P i x e l s > < ! -f l o a t> < m a x L o d P i x e l s > 1 < / m a x L o d P i x e l s > < ! -f l o a t> < m i n F a d e E x t e n t > 0 < / m i n F a d e E x t e n t > < ! -f l o a t> < m a x F a d e E x t e n t > 0 < / m a x F a d e E x t e n t > < ! -f l o a t> < / L o d > < / R e g i o n >
Description
A region contains a bounding box (<LatLonAltBox>) that describes an area of interest defined by geographic coordinates and altitudes. In addition, a Region contains an LOD (level of detail) extent (<Lod>) that defines a validity range of the associated Region in terms of projected screen size. A Region is said to be "active" when the bounding box is within the user's view and the LOD requirements are met. Objects associated with a Region are drawn only when the Region is active. When the <viewRefreshMode> is onRegion, the Link or Icon is loaded only when the Region is active. See the "Topics in KML" page on Regions for more details. In a Container or NetworkLink hierarchy, this calculation uses the Region that is the closest ancestor in the hierarchy.
< e a s t > 0 . 3 3 5 < / e a s t > < w e s t > 1 . 4 2 3 < / w e s t > < m i n A l t i t u d e > 0 < / m i n A l t i t u d e > < m a x A l t i t u d e > 0 < / m a x A l t i t u d e > < / L a t L o n A l t B o x > <Lod> Lod is an abbreviation for Level of Detail. <Lod> describes the size of the projected region on the screen that is required in order for the region to be considered "active." Also specifies the size of the pixel ramp used for fading in (from transparent to opaque) and fading out (from opaque to transparent). See diagram below for a visual representation of these parameters. < L o d > < m i n L o d P i x e l s > 2 5 6 < / m i n L o d P i x e l s > < m a x L o d P i x e l s > 1 < / m a x L o d P i x e l s > < m i n F a d e E x t e n t > 0 < / m i n F a d e E x t e n t > < m a x F a d e E x t e n t > 0 < / m a x F a d e E x t e n t > < / L o d > <minLodPixels> (required) Measurement in screen pixels that represents the minimum limit of the visibility range for a given Region. Google Earth calculates the size of the Region when projected onto screen space. Then it computes the square root of the Region's area (if, for example, the Region is square and the viewpoint is directly above the Region, and the Region is not tilted, this measurement is equal to the width of the projected Region). If this measurement falls within the limits defined by <minLodPixels> and <maxLodPixels> (and if the <LatLonAltBox> is in view), the Region is active. If this limit is not reached, the associated geometry is considered to be too far from the user's viewpoint to be drawn. <maxLodPixels> Measurement in screen pixels that represents the maximum limit of the visibility range for a given Region. A value of 1, the default, indicates "active to infinite size." <minFadeExtent> Distance over which the geometry fades, from fully opaque to fully transparent. This ramp value, expressed in screen pixels, is applied at the minimum end of the LOD (visibility) limits. <maxFadeExtent> Distance over which the geometry fades, from fully transparent to fully opaque. This ramp value, expressed in screen pixels, is applied at the maximum end of the LOD (visibility) limits.
In the following diagram, if P=the calculated projected pixel size, the circled numbers indicate the following: i f( P<m i n L o d P i x e l s ) o p a c i t y = 0 e l s ei f ( P<m i n L o d P i x e l s+m i n F a d e E x t e n t ) o p a c i t y = ( P-m i n L o d P i x e l s ) / m i n F a d e E x t e n t / / # 2i nd i a g r a m e l s ei f( P<m a x L o d P i x e l s-m a x F a d e E x t e n t ) o p a c i t y = 1 e l s ei f( P<m a x L o d P i x e l s ) o p a c i t y = ( m a x L o d P i x e l s P ) / m a x F a d e E x t e n t e l s e o p a c i t y = 0 / / # 4i nd i a g r a m / / # 5i nd i a g r a m / / # 3i nd i a g r a m / / # 1i nd i a g r a m
Example of <Region>
< R e g i o n > < L a t L o n A l t B o x > < n o r t h > 5 0 . 6 2 5 < / n o r t h > < s o u t h > 4 5 < / s o u t h > < e a s t > 2 8 . 1 2 5 < / e a s t > < w e s t > 2 2 . 5 < / w e s t > < m i n A l t i t u d e > 1 0 < / m i n A l t i t u d e > < m a x A l t i t u d e > 5 0 < / m a x A l t i t u d e > < / L a t L o n A l t B o x > < L o d > < m i n L o d P i x e l s > 1 2 8 < / m i n L o d P i x e l s > < m a x L o d P i x e l s > 1 0 2 4 < / m a x L o d P i x e l s > < m i n F a d e E x t e n t > 1 2 8 < / m i n F a d e E x t e n t > < m a x F a d e E x t e n t > 1 2 8 < / m a x F a d e E x t e n t > < / L o d > < / R e g i o n >
Extends
< Object>
Contained By
any element derived from < Feature>
<Schema>
Syntax
< S c h e m an a m e = " s t r i n g "i d = " I D " > < S i m p l e F i e l dt y p e = " s t r i n g "n a m e = " s t r i n g " > < d i s p l a y N a m e > . . . < / d i s p l a y N a m e > < / S i m p l e F i e l d > < / S c h e m a >
< ! -s t r i n g>
Description
Specifies a custom KML schema that is used to add custom data to KML Features. The "id" attribute is required and must be unique within the KML file. <Schema> is always a child of <Document>.
uint short ushort float double bool <displayName> The name, if any, to be used when the field name is displayed to the Google Earth user. Use the [CDATA] element to escape standard HTML markup.
Example
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < D o c u m e n t > < S c h e m an a m e = " T r a i l H e a d T y p e "i d = " T r a i l H e a d T y p e I d " > < S i m p l e F i e l dt y p e = " s t r i n g "n a m e = " T r a i l H e a d N a m e " > < d i s p l a y N a m e > < ! [ C D A T A [ < b > T r a i lH e a dN a m e < / b > ] ] > < / d i s p l a y N a m e > < / S i m p l e F i e l d > < S i m p l e F i e l dt y p e = " d o u b l e "n a m e = " T r a i l L e n g t h " > < d i s p l a y N a m e > < ! [ C D A T A [ < i > T h el e n g t hi nm i l e s < / i > ] ] > < / d i s p l a y N a m e > < / S i m p l e F i e l d > < S i m p l e F i e l dt y p e = " i n t "n a m e = " E l e v a t i o n G a i n " > < d i s p l a y N a m e > < ! [ C D A T A [ < i > c h a n g ei na l t i t u d e < / i > ] ] > < / d i s p l a y N a m e > < / S i m p l e F i e l d > < / S c h e m a > < / D o c u m e n t > < / k m l >
Extends
This is a root element.
Contained By
<Document>
See Also
<SchemaData>
<ScreenOverlay>
Syntax
< S c r e e n O v e r l a yi d = " I D " > < ! -i n h e r i t e df r o mF e a t u r ee l e m e n t> < n a m e > . . . < / n a m e > < v i s i b i l i t y > 1 < / v i s i b i l i t y > < o p e n > 0 < / o p e n > < a t o m : a u t h o r > . . . < a t o m : a u t h o r > < a t o m : l i n kh r e f = "" / > < ! -s t r i n g> < ! -b o o l e a n> < ! -b o o l e a n> < ! -x m l n s : a t o m> < ! -x m l n s : a t o m>
< a d d r e s s > . . . < / a d d r e s s > < ! -s t r i n g> < x a l : A d d r e s s D e t a i l s > . . . < / x a l : A d d r e s s D e t a i l s > < ! -x m l n s : x a l> < p h o n e N u m b e r > . . . < / p h o n e N u m b e r > < ! -s t r i n g> < S n i p p e tm a x L i n e s = " 2 " > . . . < / S n i p p e t > < d e s c r i p t i o n > . . . < / d e s c r i p t i o n > < A b s t r a c t V i e w > . . . < / A b s t r a c t V i e w > < T i m e P r i m i t i v e > . . . < / T i m e P r i m i t i v e > < s t y l e U r l > . . . < / s t y l e U r l > < S t y l e S e l e c t o r > . . . < / S t y l e S e l e c t o r > < ! -a n y U R I> < ! -s t r i n g> < ! -s t r i n g> < ! -C a m e r ao rL o o k A t>
< R e g i o n > . . . < / R e g i o n > < M e t a d a t a > . . . < / M e t a d a t a > < E x t e n d e d D a t a > . . . < / E x t e n d e d D a t a >
< ! -i n h e r i t e df r o mO v e r l a ye l e m e n t> < c o l o r > f f f f f f f f < / c o l o r > < ! -k m l : c o l o r> < d r a w O r d e r > 0 < / d r a w O r d e r > < ! -i n t> < I c o n > . . . < / I c o n > < ! -s p e c i f i ct oS c r e e n O v e r l a y> < o v e r l a y X Yx = " d o u b l e "y = " d o u b l e "x u n i t s = " f r a c t i o n "y u n i t s = " f r a c t i o n " / > < ! -v e c 2> < ! -x u n i t sa n dy u n i t sc a nb eo n eo f :f r a c t i o n ,p i x e l s ,o ri n s e t P i x e l s> < s c r e e n X Yx = " d o u b l e "y = " d o u b l e "x u n i t s = " f r a c t i o n "y u n i t s = " f r a c t i o n " / > < ! -v e c 2> < r o t a t i o n X Yx = " d o u b l e "y = " d o u b l e "x u n i t s = " f r a c t i o n "y u n i t s " f r a c t i o n " / > < ! -v e c 2> < s i z ex = " d o u b l e "y = " d o u b l e "x u n i t s = " f r a c t i o n "y u n i t s = " f r a c t i o n " / > < ! -v e c 2> < r o t a t i o n > 0 < / r o t a t i o n > < ! -f l o a t> < / S c r e e n O v e r l a y >
Description
This element draws an image overlay fixed to the screen. Sample uses for ScreenOverlays are compasses, logos, and headsup displays. ScreenOverlay sizing is determined by the <size> element. Positioning of the overlay is handled by mapping a point in the image specified by <overlayXY> to a point on the screen specified by <screenXY>. Then the image is rotated by <rotation> degrees about a point relative to the screen specified by <rotationXY>. The <href> child of <Icon> specifies the image to be used as the overlay. This file can be either on a local file system or on a web server. If this element is omitted or contains no <href>, a rectangle is drawn using the color and size defined by the screen overlay.
A value of "pixels" indicates the x value in pixels. A value of "insetPixels" indicates the indent from the right edge of the screen. yunits - Units in which the y value is specified. A value of fraction indicates the y value is a fraction of the screen. A value of "pixels" indicates the y value in pixels. A value of "insetPixels" indicates the indent from the top edge of the screen. For example, < screenXY x=".5" y=".5" xunits="fraction" yunits="fraction"/> indicates a point in the middle of the screen. Here are some examples: Center the image: < S c r e e n O v e r l a y > < o v e r l a y X Yx = " 0 . 5 "y = " 0 . 5 "x u n i t s = " f r a c t i o n "y u n i t s = " f r a c t i o n " / > < s c r e e n X Yx = " 0 . 5 "y = " 0 . 5 "x u n i t s = " f r a c t i o n "y u n i t s = " f r a c t i o n " / > < / S c r e e n O v e r l a y > Place the image on the top left: < S c r e e n O v e r l a y > < o v e r l a y X Yx = " 0 "y = " 1 "x u n i t s = " f r a c t i o n "y u n i t s = " f r a c t i o n " / > < s c r e e n X Yx = " 0 "y = " 1 "x u n i t s = " f r a c t i o n "y u n i t s = " f r a c t i o n " / > < / S c r e e n O v e r l a y > Place the image at the right of the screen: < S c r e e n O v e r l a y > < o v e r l a y X Yx = " 1 "y = " 1 "x u n i t s = " f r a c t i o n "y u n i t s = " f r a c t i o n " / > < s c r e e n X Yx = " 1 "y = " 1 "x u n i t s = " f r a c t i o n "y u n i t s = " f r a c t i o n " / > < / S c r e e n O v e r l a y > <rotationXY> Point relative to the screen about which the screen overlay is rotated. <size> Specifies the size of the image for the screen overlay, as follows: A value of 1 indicates to use the native dimension A value of 0 indicates to maintain the aspect ratio A value of n sets the value of the dimension For example: To force the image to retain its original x and y dimensions, set the values to 1: < s i z ex = " 1 "y = " 1 "x u n i t s = " f r a c t i o n "y u n i t s = " f r a c t i o n " / > To force the image to retain its horizontal dimension, but to take up 20 percent of the vertical screen space: < s i z ex = " 1 "y = " 0 . 2 "x u n i t s = " f r a c t i o n "y u n i t s = " f r a c t i o n " / > To force the image to resize to 100px by 500px: < s i z ex = " 1 0 0 "y = " 5 0 0 "x u n i t s = " p i x e l s "y u n i t s = " p i x e l s " / > <rotation> Indicates the angle of rotation of the parent object. A value of 0 means no rotation. The value is an angle in degrees counterclockwise starting from north. Use 180 to indicate the rotation of the parent object from 0. The center of the <rotation>, if not (.5,.5), is specified in <rotationXY>.
Example
The following example places an image at the exact center of the screen, using the original width, height, and aspect ratio of the image. < S c r e e n O v e r l a yi d = " k h S c r e e n O v e r l a y 7 5 6 " > < n a m e > S i m p l ec r o s s h a i r s < / n a m e > < d e s c r i p t i o n > T h i ss c r e e no v e r l a yu s e sf r a c t i o n a lp o s i t i o n i n g t op u tt h ei m a g ei nt h ee x a c tc e n t e ro ft h es c r e e n < / d e s c r i p t i o n > < I c o n > < h r e f > h t t p : / / m y s e r v e r / m y i m a g e . j p g < / h r e f > < / I c o n > < o v e r l a y X Yx = " 0 . 5 "y = " 0 . 5 "x u n i t s = " f r a c t i o n "y u n i t s = " f r a c t i o n " / > < s c r e e n X Yx = " 0 . 5 "y = " 0 . 5 "x u n i t s = " f r a c t i o n "y u n i t s = " f r a c t i o n " / > < r o t a t i o n > 3 9 . 3 7 8 7 8 6 3 0 1 1 6 9 8 5 < / r o t a t i o n > < s i z ex = " 0 "y = " 0 "x u n i t s = " p i x e l s "y u n i t s = " p i x e l s " / > < / S c r e e n O v e r l a y >
Extends
< Feature> < Overlay>
Contained By
<Document> <Folder>
<Style>
Syntax
< S t y l ei d = " I D " > < ! -e x t e n d sS t y l e S e l e c t o r> < ! -s p e c i f i ct oS t y l e> < I c o n S t y l e > . . . < / I c o n S t y l e > < L a b e l S t y l e > . . . < / L a b e l S t y l e > < L i n e S t y l e > . . . < / L i n e S t y l e > < P o l y S t y l e > . . . < / P o l y S t y l e > < B a l l o o n S t y l e > . . . < / B a l l o o n S t y l e > < L i s t S t y l e > . . . < / L i s t S t y l e > < / S t y l e >
Description
A Style defines an addressable style group that can be referenced by StyleMaps and Features. Styles affect how Geometry is presented in the 3D viewer and how Features appear in the Places panel of the List view. Shared styles are collected in a <Document> and must have an id defined for them so that they can be referenced by the individual Features that use them. Use an id to refer to the style from a <styleUrl>.
Example
< D o c u m e n t > < ! -B e g i nS t y l eD e f i n i t i o n s> < S t y l ei d = " m y D e f a u l t S t y l e s " > < I c o n S t y l e > < c o l o r > a 1 f f 0 0 f f < / c o l o r > < s c a l e > 1 . 3 9 9 9 9 9 9 7 6 1 5 8 1 4 2 < / s c a l e > < I c o n > < h r e f > h t t p : / / m y s e r v e r . c o m / i c o n . j p g < / h r e f > < / I c o n > < / I c o n S t y l e > < L a b e l S t y l e > < c o l o r > 7 f f f a a f f < / c o l o r > < s c a l e > 1 . 5 < / s c a l e > < / L a b e l S t y l e > < L i n e S t y l e > < c o l o r > f f 0 0 0 0 f f < / c o l o r > < w i d t h > 1 5 < / w i d t h > < / L i n e S t y l e > < P o l y S t y l e > < c o l o r > 7 f 7 f a a a a < / c o l o r > < c o l o r M o d e > r a n d o m < / c o l o r M o d e > < / P o l y S t y l e > < / S t y l e > < ! -E n dS t y l eD e f i n i t i o n s> < ! -P l a c e m a r k# 1> < P l a c e m a r k > < n a m e > G o o g l eE a r t h-N e wP o l y g o n < / n a m e > < d e s c r i p t i o n > H e r ei ss o m ed e s c r i p t i v et e x t < / d e s c r i p t i o n > < s t y l e U r l > # m y D e f a u l t S t y l e s < / s t y l e U r l > ... < / P l a c e m a r k > < ! -P l a c e m a r k# 2> < P l a c e m a r k > < n a m e > G o o g l eE a r t h-N e wP a t h < / n a m e > < s t y l e U r l > # m y D e f a u l t S t y l e s < / s t y l e U r l > .... < / P l a c e m a r k > < / D o c u m e n t > < / k m l >
Extends
< StyleSelector>
Contained By
any < Feature>
<PolyStyle>
<StyleMap>
Syntax
< S t y l e M a pi d = " I D " > < ! -e x t e n d sS t y l e S e l e c t o r> < ! -e l e m e n t ss p e c i f i ct oS t y l e M a p> < P a i ri d = " I D " > < k e y > n o r m a l < / k e y > < ! -k m l : s t y l e S t a t e E n u m : n o r m a lo rh i g h l i g h t> < s t y l e U r l > . . . < / s t y l e U r l >o r< S t y l e > . . . < / S t y l e > < / P a i r > < / S t y l e M a p >
Description
A <StyleMap> maps between two different Styles. Typically a <StyleMap> element is used to provide separate normal and highlighted styles for a placemark, so that the highlighted version appears when the user mouses over the icon in Google Earth.
Example
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < D o c u m e n t > < n a m e > S t y l e M a p . k m l < / n a m e > < o p e n > 1 < / o p e n > < S t y l ei d = " n o r m a l S t a t e " > < I c o n S t y l e > < s c a l e > 1 . 0 < / s c a l e > < I c o n > < h r e f > h t t p : / / m a p s . g o o g l e . c o m / m a p f i l e s / k m l / p a l 3 / i c o n 5 5 . p n g < / h r e f > < / I c o n > < / I c o n S t y l e > < L a b e l S t y l e > < s c a l e > 1 . 0 < / s c a l e > < / L a b e l S t y l e > < / S t y l e > < S t y l ei d = " h i g h l i g h t S t a t e " > < I c o n S t y l e > < I c o n > < h r e f > h t t p : / / m a p s . g o o g l e . c o m / m a p f i l e s / k m l / p a l 3 / i c o n 6 0 . p n g < / h r e f > < / I c o n > < s c a l e > 1 . 1 < / s c a l e > < / I c o n S t y l e > < L a b e l S t y l e > < s c a l e > 1 . 1 < / s c a l e > < c o l o r > f f 0 0 0 0 c 0 < / c o l o r >
< / L a b e l S t y l e > < / S t y l e > < S t y l e M a pi d = " s t y l e M a p E x a m p l e " > < P a i r > < k e y > n o r m a l < / k e y > < s t y l e U r l > # n o r m a l S t a t e < / s t y l e U r l > < / P a i r > < P a i r > < k e y > h i g h l i g h t < / k e y > < s t y l e U r l > # h i g h l i g h t S t a t e < / s t y l e U r l > < / P a i r > < / S t y l e M a p > < P l a c e m a r k > < n a m e > S t y l e M a pe x a m p l e < / n a m e > < s t y l e U r l > # s t y l e M a p E x a m p l e < / s t y l e U r l > < P o i n t > < c o o r d i n a t e s > 1 2 2 . 3 6 8 9 8 7 , 3 7 . 8 1 7 6 3 4 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < / D o c u m e n t > < / k m l >
Extends
< StyleSelector>
Contained By
any < Feature>
<StyleSelector>
Syntax
< ! -a b s t r a c te l e m e n t ;d on o tc r e a t e> < ! -S t y l e S e l e c t o ri d = " I D "> < ! -/ S t y l e S e l e c t o r> Description This is an abstract element and cannot be used directly in a KML file. It is the base type for the <Style> and <StyleMap> elements. The StyleMap element selects a style based on the current mode of the Placemark. An element derived from StyleSelector is uniquely identified by its id and its url.
< ! -S t y l e , S t y l e M a p>
Extends
<Object>
Extended By
<Style> <StyleMap>
<TimePrimitive>
Syntax
< ! -a b s t r a c te l e m e n t ;d on o tc r e a t e> < ! -T i m e P r i m i t i v ei d = " I D "> < ! -T i m e S p a n , T i m e S t a m p> < ! -e x t e n d sO b j e c t> < ! -/ T i m e P r i m i t i v e>
Description
This is an abstract element and cannot be used directly in a KML file. This element is extended by the <TimeSpan> and <TimeStamp> elements.
Extends
< Object>
Extended By
<TimeSpan> <TimeStamp>
<TimeSpan>
Syntax
< T i m e S p a ni d = " I D " > < b e g i n > . . . < / b e g i n > < e n d > . . . < / e n d > < / T i m e S p a n > < ! -k m l : d a t e T i m e> < ! -k m l : d a t e T i m e>
Description
Represents an extent in time bounded by begin and end dateTimes . If <begin> or <end> is missing, then that end of the period is unbounded (see Example below). The dateTime is defined according to XML Schema time (see XML Schema Part 2: Datatypes Second Edition). The value can be expressed as yyyy-mm-ddThh:mm:ss zzzzzz, where T is the separator between the date and the time, and the time zone is either Z (for UTC) or zzzzzz , which represents hh:mm in relation to UTC. Additionally, the value can be expressed as a date only. See <TimeStamp> for examples.
Example
The following example shows the time period representing Colorado's statehood. It contains only a <begin> tag because Colorado became a state on August 1, 1876, and continues to be a state: < P l a c e m a r k > < n a m e > C o l o r a d o < / n a m e > . . . < T i m e S p a n > < b e g i n > 1 8 7 6 0 8 0 1 < / b e g i n > < / T i m e S p a n > < / P l a c e m a r k >
Extends
< TimePrimitive>
Contained By
any element derived from < Feature>
<TimeStamp>
Syntax
< T i m e S t a m pi d = " I D " > < w h e n > . . . < / w h e n > < / T i m e S t a m p >
< ! -k m l : d a t e T i m e>
Description
Represents a single moment in time. This is a simple element and contains no children. Its value is a dateTime, specified in XML time (see XML Schema Part 2: Datatypes Second Edition). The precision of the TimeStamp is dictated by the dateTime value in the <when> element.
This example gives the local time and then the conversion to UTC. < T i m e S t a m p > < w h e n > 1 9 9 7 0 7 1 6 T 1 0 : 3 0 : 1 5 + 0 3 : 0 0 < / w h e n > < / T i m e S t a m p >
Extends
< TimePrimitive>
Contained By
any element that extends < Feature>
Example
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " x m l n s : g x = " h t t p : / / w w w . g o o g l e . c o m / k m l / e x t / 2 . 2 " > < D o c u m e n t > < n a m e > V i e w sw i t hT i m e < / n a m e > < o p e n > 1 < / o p e n > < d e s c r i p t i o n > I nG o o g l eE a r t h ,e n a b l eh i s t o r i c a li m a g e r ya n ds u n l i g h t , t h e nc l i c ko ne a c hp l a c e m a r kt of l yt ot h a tp o i n ti nt i m e . < / d e s c r i p t i o n > < P l a c e m a r k > < n a m e > S u t r oB a t h si n1 9 4 6 < / n a m e > < C a m e r a > < g x : T i m e S t a m p > < w h e n > 1 9 4 6 0 7 2 9 T 0 5 : 0 0 : 0 0 0 8 : 0 0 < / w h e n > < / g x : T i m e S t a m p > < l o n g i t u d e > 1 2 2 . 5 1 8 1 7 2 < / l o n g i t u d e > < l a t i t u d e > 3 7 . 7 7 8 0 3 6 < / l a t i t u d e > < a l t i t u d e > 2 2 1 . 0 < / a l t i t u d e > < h e a d i n g > 7 0 . 0 < / h e a d i n g > < t i l t > 7 5 . 0 < / t i l t > < / C a m e r a > < / P l a c e m a r k > < P l a c e m a r k > < n a m e > P a l a c eo fF i n eA r t si n2 0 0 2 < / n a m e > < C a m e r a > < g x : T i m e S t a m p > < w h e n > 2 0 0 2 0 7 0 9 T 1 9 : 0 0 : 0 0 0 8 : 0 0 < / w h e n > < / g x : T i m e S t a m p > < l o n g i t u d e > 1 2 2 . 4 4 4 6 3 3 < / l o n g i t u d e > < l a t i t u d e > 3 7 . 8 0 1 8 9 9 < / l a t i t u d e > < a l t i t u d e > 1 3 9 . 6 2 9 4 3 8 < / a l t i t u d e > < h e a d i n g > 7 0 . 0 < / h e a d i n g > < t i l t > 7 5 < / t i l t > < / C a m e r a > < / P l a c e m a r k >
<gx:Tour>
This element is an extension of the OGC KML 2.2 standard and is supported in Google Earth 5.0 and later. Learn more
Syntax
< g x : T o u ri d = " I D " > < n a m e > . . . < / n a m e > < d e s c r i p t i o n > . . . < / d e s c r i p t i o n > < g x : P l a y l i s t > < ! -a n yn u m b e ro fg x : T o u r P r i m i t i v ee l e m e n t s> < / g x : P l a y l i s t > < / g x : T o u r >
Description
< g x : T o u r >can contain a single < g x : P l a y l i s t >element, which in turn contains an ordered list of g x : T o u r P r i m i t i v e elements that define a tour in any KML browser. Learn more about tours.
Example
A number of tour examples are available from the Touring chapter of the KML Developer's Guide .
Contains
gx:Playlist - Contains any number of g x : T o u r P r i m i t i v eelements. There can be zero or one < g x : P l a y l i s t > elements contained within a < g x : T o u r >element. < g x : T o u r > < g x : P l a y l i s t > < ! -g x : T o u r P r i m i t i v e> . . . < ! -/ g x : T o u r P r i m i t i v e> < ! -A n yn u m b e ro fg x : T o u r P r i m i t i v ee l e m e n t sc a nb ei n c l u d e d> < / g x : P l a y l i s t > < / g x : T o u r >
<gx:TourPrimitive>
This element is an extension of the OGC KML 2.2 standard and is supported in Google Earth 5.0 and later. Learn more
Syntax
< g x : T o u r > < g x : P l a y l i s t >
< ! -a b s t r a c te l e m e n t ;d on o tc r e a t e> < ! -g x : T o u r P r i m i t i v e> < ! -g x : A n i m a t e d U p d a t e ,g x : F l y T o ,g x : T o u r C o n t r o l ,g x : S o u n d C u e ,g x : W a i t < ! -e x t e n d sO b j e c t> < ! -/ g x : T o u r P r i m i t i v e> < / g x : P l a y l i s t > < / g x : T o u r >
Description
This is an abstract element and cannot be used directly in a KML file. This element is extended by the < g x : F l y T o > , < g x : A n i m a t e d U p d a t e > ,< g x : T o u r C o n t r o l > ,< g x : W a i t > , and < g x : S o u n d C u e >elements. Elements extended from g x : T o u r P r i m i t i v eprovide instructions to KML browsers during tours, including points to fly to and the duration of those flights, pauses, updates to KML features, and sound files to play. These elements must be contained within a < g x : P l a y l i s t >element, which in turn is contained with a < g x : T o u r >element.
Example
< ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " > < D o c u m e n t > < n a m e > g x : A n i m a t e d U p d a t ee x a m p l e < / n a m e > < o p e n > 1 < / o p e n > < S t y l e > < I c o n S t y l ei d = " i c o n s t y l e " > < s c a l e > 1 . 0 < / s c a l e > < / I c o n S t y l e > < / S t y l e > < P l a c e m a r ki d = " m o u n t a i n p i n 1 " > < n a m e > N e wZ e a l a n d ' sS o u t h e r nA l p s < / n a m e > < s t y l e U r l > # s t y l e < / s t y l e U r l > < P o i n t > < c o o r d i n a t e s > 1 7 0 . 1 4 4 , 4 3 . 6 0 5 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < g x : T o u r > < n a m e > P l a ym e ! < / n a m e > < g x : P l a y l i s t > < ! -T h eo r d e ra n dd u r a t i o no fT o u r P r i m i t i v e si si m p o r t a n t ; i nt h i se x a m p l e ,t h eA n i m a t e d U p d a t en e e d s 6 . 5s e c o n d st oc o m p l e t e .T h eF l y T op r o v i d e s4 . 1 , a n dt h eW a i t2 . 4 ,g i v i n gt h eu p d a t et i m et o c o m p l e t eb e f o r et h eT o u re n d s .A n i m a t e d U p d a t e s d o n ' th o l dT o u r so p e n ,b u tF l y T o sa n dW a i t sd o . F o rm o r ei n f o r m a t i o n ,r e f e rt o : h t t p : / / d e v e l o p e r s . g o o g l e . c o m / k m l / d o c u m e n t a t i o n / t o u r i n g # t o u r t i m e l i n e s > < g x : A n i m a t e d U p d a t e > < g x : d u r a t i o n > 6 . 5 < / g x : d u r a t i o n > < U p d a t e > < t a r g e t H r e f > < / t a r g e t H r e f > < C h a n g e > < I c o n S t y l et a r g e t I d = " i c o n s t y l e " > < s c a l e > 1 0 . 0 < / s c a l e > < / I c o n S t y l e > < / C h a n g e > < / U p d a t e > < / g x : A n i m a t e d U p d a t e > < g x : F l y T o > < g x : d u r a t i o n > 4 . 1 < / g x : d u r a t i o n > < C a m e r a > < l o n g i t u d e > 1 7 0 . 1 5 7 < / l o n g i t u d e > < l a t i t u d e > 4 3 . 6 7 1 < / l a t i t u d e > < a l t i t u d e > 9 7 0 0 < / a l t i t u d e > < h e a d i n g > 6 . 3 3 3 < / h e a d i n g >
< t i l t > 3 3 . 5 < / t i l t > < r o l l > 0 < / r o l l > < / C a m e r a > < / g x : F l y T o > < g x : W a i t > < g x : d u r a t i o n > 2 . 4 < / g x : d u r a t i o n > < ! -w a i t i n gf o rt h eA n i m a t e d U p d a t et oc o m p l e t e> < / g x : W a i t > < / g x : P l a y l i s t > < / g x : T o u r > < / D o c u m e n t > < / k m l >
Contained by
<gx:Playlist>
Extended by
<gx:AnimatedUpdate> <gx:FlyTo> <gx:SoundCue> < g x : S o u n d C u ei d = " I D " > < h r e f > h t t p : / / w w w . e x a m p l e . c o m / a u d i o / t r u m p e t s . m p 3 < / h r e f > < g x : d e l a y e d S t a r t > 0 < / g x : d e l a y e d S t a r t > < / g x : S o u n d C u e >
Contains an < h r e f >element specifying a sound file to play, in MP3, M4A, or AAC format. It does not contain a duration. The sound file plays in parallel to the rest of the tour, meaning that the next tour primitive takes place immediately after the < g x : S o u n d C u e >tour primitive is reached. If another sound file is cued before the first has finished playing, the files are mixed. The < g x : d e l a y e d S t a r t >element specifies to delay the start of the sound for a given number of seconds before playing the file. <gx:TourControl> < g x : T o u r C o n t r o li d = " I D " > < g x : p l a y M o d e > p a u s e < / g x : p l a y M o d e > < / g x : T o u r C o n t r o l >
< ! -g x : p l a y M o d e E n u m :p a u s e>
Contains a single < g x : p l a y M o d e >element, allowing the tour to be paused until a user takes action to continue the tour. <gx:Wait> < g x : W a i ti d = " I D " > < g x : d u r a t i o n > 0 . 0 < / g x : d u r a t i o n > < / g x : W a i t >
< ! -d o u b l e>
The camera remains still, at the last-defined gx:AbstractView, for the number of seconds specified before playing the next g x : T o u r P r i m i t i v e . Note that a wait does not pause the tour timeline - currently-playing sound files and animated updates will continue to play while the camera is waiting.
Extends
<Object>
<gx:Track>
This element is an extension of the OGC KML 2.2 standard and is supported in Google Earth 5.2 and later. Learn more
Syntax
< g x : T r a c ki d = " I D " > < ! -s p e c i f i ct oT r a c k> < a l t i t u d e M o d e > c l a m p T o G r o u n d < / a l t i t u d e M o d e > < ! -k m l : a l t i t u d e M o d e E n u m :c l a m p T o G r o u n d ,r e l a t i v e T o G r o u n d ,o ra b s o l u t e> < ! -o r ,s u b s t i t u t eg x : a l t i t u d e M o d e :c l a m p T o S e a F l o o r ,r e l a t i v e T o S e a F l o o r> < w h e n > . . . < / w h e n > < ! -k m l : d a t e T i m e> < g x : c o o r d > . . . < / g x : c o o r d > < ! -s t r i n g> < g x : a n g l e s > . . . < / g x : a n g l e s > < ! -s t r i n g> < M o d e l > . . . < / M o d e l > < E x t e n d e d D a t a > < S c h e m a D a t as c h e m a U r l = " a n y U R I " > < g x : S i m p l e A r r a y D a t ak m l : n a m e = " s t r i n g " > < g x : v a l u e > . . . < / g x : v a l u e > < ! -s t r i n g> < / g x : S i m p l e A r r a y D a t a > < S c h e m a D a t a > < / E x t e n d e d D a t a > < / g x : T r a c k >
Description
A track describes how an object moves through the world over a given time period. This feature allows you to create one visible object in Google Earth (either a Point icon or a Model) that encodes multiple positions for the same object for multiple times. In Google Earth, the time slider allows the user to move the view through time, which animates the position of the object. A gx:MultiTrack element is used to collect multiple tracks into one conceptual unit with one associated icon (or Model) that moves along the track. This feature is useful if you have multiple tracks for the same real-world object. The <gx:interpolate> Boolean element of a <gx:MultiTrack> specifies whether to interpolate between the tracks in a multi-track. If this value is 0, then the point or Model stops at the end of one track and jumps to the start of the next one. (For example, if you want a single placemark to represent your travels on two days, and your GPS unit was turned off for four hours during this period, you would want to show a discontinuity between the points where the unit was turned off and then on again.) If the value for <gx:interpolate> is 1, the values between the end of the first track and the beginning of the next track are interpolated so that the track appears as one continuous path. See the Google Earth User Guide for information on how to import GPS data into Google Earth.
"Sparse" Data
When some data values are missing for positions on the track, empty <coord/> (<coord></coord>) or <angles/> (<angles> </angles>) tags can be provided to balance the arrays. An empty <coord/> or <angles/> tag indicates that no such data exists for a given data point, and the value should be interpolated between the nearest two well-specified data points. This behavior also applies to ExtendedData for a track. Any element except <when> can be empty and will be interpolated between the nearest two well-specified elements.
For example, if the ground elevation of a location is exactly at sea level and the altitude for a point is set to 9 meters, then the elevation for the icon of a point placemark elevation is 9 meters with this mode. However, if the same coordinate is set over a location where the ground elevation is 10 meters above sea level, then the elevation of the coordinate is 19 meters. absolute - Sets the altitude of the coordinate relative to sea level, regardless of the actual elevation of the terrain beneath the element. For example, if you set the altitude of a coordinate to 10 meters with an absolute altitude mode, the icon of a point placemark will appear to be at ground level if the terrain beneath is also 10 meters above sea level. If the terrain is 3 meters above sea level, the placemark will appear elevated above the terrain by 7 meters. <gx:altitudeMode> A KML extension in the Google extension namespace, allowing altitudes relative to the sea floor. Values are: relativeToSeaFloor - Interprets the altitude as a value in meters above the sea floor. If the point is above land rather than sea, the altitude will be interpreted as being above the ground. clampToSeaFloor - The altitude specification is ignored, and the point will be positioned on the sea floor. If the point is on land rather than at sea, the point will be positioned on the ground. <when> A time value that corresponds to a position (specified in a <gx:coord> element). The number of <when> elements in a <Track> must be equal to the number of <gx:coord> elements (and <gx:angles> elements, if included). You can specify an empty <when> element for a missing value if necessary. <gx:coord> A coordinate value consisting of three values for longitude, latitude, and altitude, with no comma separators. For example: < g x : c o o r d > 1 2 2 . 2 0 7 8 8 13 7 . 3 7 1 9 1 51 5 6 . 0 0 0 0 0 0 < / g x : c o o r d > Note that the syntax for the <gx:coord> element is different from the syntax for the <coordinates> element, which uses commas to separate the longitude, latitude, and altitude components. <gx:angles> This value is used to specify an additional heading, tilt, and roll value to the icon or model for each time/position within the track. The three floating point values are listed without comma separators and represent degrees of rotation. If <gx:angles> is not specified, then Google Earth infers the heading, tilt, and roll of the object from its track.The number of <gx:angles> elements specified should equal the number of time (<when>) and position (<gx:coord>) elements. Currently, icons support only heading, but models support all three values. Here is an example of setting this value: < g x : a n g l e s > 4 5 . 5 4 6 7 66 6 . 2 3 4 27 7 . 0 < / g x : a n g l e s > <Model> If specified, the Model replaces the Point icon used to indicate the current position on the track. When a <Model> is specified within a <gx:Track>, here is how the child elements of <Model> function: The <Location> element is ignored. The <altitudeMode> element is ignored. The <Oriention> value is combined with the orientation of the track as follows. First, the <Orientation> rotation is applied, which brings the model from its local (x, y, z) coordinate system to a right-side-up, north-facing orientation. Next, a rotation is applied that corresponds to the interpolation of the <gx:angles> values that affect the heading, tilt, and roll of the model as it moves along the track. If no angles are specified, the heading and tilt are inferred from the movement of the model. Tip: If you are unsure of how to specify the orientation, omit the <Orientation> element from the <Model> and watch how Google Earth positions the model as it moves along the track. If you notice that the front of the model is facing sideways, modify the <heading> element in <Orientation> to rotate the model so that it points toward the front. If the model is not upright, try modifying the <tilt> or <roll> elements. <ExtendedData> Custom data elements defined in a <Schema> earlier in the KML file. It's often useful to add extended data associated with each time/position on a track. Bicycle rides, for example, could include data for heart rate, cadence, and power, as shown in Example of Track with Extended Data. In the <Schema>, you define a <gx:SimpleArrayField> for each custom data type. Then, for each data type, include a <gx:SimpleArrayData> element containing <gx:value> elements that correspond to each time/position on the track. See the Adding Custom Data
chapter of the KML Developer's Guide for more information on adding new data fields. In Google Earth, custom data is displayed in the Elevation Profile for the track.
Simple Example
This very basic example shows how to create parallel "arrays" of values for <when> and <gx:coord>. The number of time and position values must be equal. < ? x m lv e r s i o n = " 1 . 0 "e n c o d i n g = " U T F 8 " ? > < k m lx m l n s = " h t t p : / / w w w . o p e n g i s . n e t / k m l / 2 . 2 " x m l n s : g x = " h t t p : / / w w w . g o o g l e . c o m / k m l / e x t / 2 . 2 " > < F o l d e r > < P l a c e m a r k > < g x : T r a c k > < w h e n > 2 0 1 0 0 5 2 8 T 0 2 : 0 2 : 0 9 Z < / w h e n > < w h e n > 2 0 1 0 0 5 2 8 T 0 2 : 0 2 : 3 5 Z < / w h e n > < w h e n > 2 0 1 0 0 5 2 8 T 0 2 : 0 2 : 4 4 Z < / w h e n > < w h e n > 2 0 1 0 0 5 2 8 T 0 2 : 0 2 : 5 3 Z < / w h e n > < w h e n > 2 0 1 0 0 5 2 8 T 0 2 : 0 2 : 5 4 Z < / w h e n > < w h e n > 2 0 1 0 0 5 2 8 T 0 2 : 0 2 : 5 5 Z < / w h e n > < w h e n > 2 0 1 0 0 5 2 8 T 0 2 : 0 2 : 5 6 Z < / w h e n > < g x : c o o r d > 1 2 2 . 2 0 7 8 8 13 7 . 3 7 1 9 1 51 5 6 . 0 0 0 0 0 0 < / g x : c o o r d > < g x : c o o r d > 1 2 2 . 2 0 5 7 1 23 7 . 3 7 3 2 8 81 5 2 . 0 0 0 0 0 0 < / g x : c o o r d > < g x : c o o r d > 1 2 2 . 2 0 4 6 7 83 7 . 3 7 3 9 3 91 4 7 . 0 0 0 0 0 0 < / g x : c o o r d > < g x : c o o r d > 1 2 2 . 2 0 3 5 7 23 7 . 3 7 4 6 3 01 4 2 . 1 9 9 9 9 7 < / g x : c o o r d > < g x : c o o r d > 1 2 2 . 2 0 3 4 5 13 7 . 3 7 4 7 0 61 4 1 . 8 0 0 0 0 3 < / g x : c o o r d > < g x : c o o r d > 1 2 2 . 2 0 3 3 2 93 7 . 3 7 4 7 8 01 4 1 . 1 9 9 9 9 7 < / g x : c o o r d > < g x : c o o r d > 1 2 2 . 2 0 3 2 0 73 7 . 3 7 4 8 5 71 4 0 . 1 9 9 9 9 7 < / g x : c o o r d > < / g x : T r a c k > < / P l a c e m a r k > < / F o l d e r > < / k m l >
< / I c o n > < / I c o n S t y l e > < L a b e l S t y l e > < s c a l e > 0 < / s c a l e > < / L a b e l S t y l e > < / S t y l e > < ! -H i g h l i g h t e dt r a c ks t y l e> < S t y l ei d = " t r a c k _ h " > < I c o n S t y l e > < s c a l e > 1 . 2 < / s c a l e > < I c o n > < h r e f > h t t p : / / e a r t h . g o o g l e . c o m / i m a g e s / k m l i c o n s / t r a c k d i r e c t i o n a l / t r a c k n o n e . p n g < / h r e f > < / I c o n > < / I c o n S t y l e > < / S t y l e > < S t y l e M a pi d = " t r a c k " > < P a i r > < k e y > n o r m a l < / k e y > < s t y l e U r l > # t r a c k _ n < / s t y l e U r l > < / P a i r > < P a i r > < k e y > h i g h l i g h t < / k e y > < s t y l e U r l > # t r a c k _ h < / s t y l e U r l > < / P a i r > < / S t y l e M a p > < ! -N o r m a lm u l t i T r a c ks t y l e> < S t y l ei d = " m u l t i T r a c k _ n " > < I c o n S t y l e > < I c o n > < h r e f > h t t p : / / e a r t h . g o o g l e . c o m / i m a g e s / k m l i c o n s / t r a c k d i r e c t i o n a l / t r a c k 0 . p n g < / h r e f > < / I c o n > < / I c o n S t y l e > < L i n e S t y l e > < c o l o r > 9 9 f f a c 5 9 < / c o l o r > < w i d t h > 6 < / w i d t h > < / L i n e S t y l e > < / S t y l e > < ! -H i g h l i g h t e dm u l t i T r a c ks t y l e> < S t y l ei d = " m u l t i T r a c k _ h " > < I c o n S t y l e > < s c a l e > 1 . 2 < / s c a l e > < I c o n > < h r e f > h t t p : / / e a r t h . g o o g l e . c o m / i m a g e s / k m l i c o n s / t r a c k d i r e c t i o n a l / t r a c k 0 . p n g < / h r e f > < / I c o n > < / I c o n S t y l e > < L i n e S t y l e > < c o l o r > 9 9 f f a c 5 9 < / c o l o r > < w i d t h > 8 < / w i d t h > < / L i n e S t y l e > < / S t y l e > < S t y l e M a pi d = " m u l t i T r a c k " > < P a i r > < k e y > n o r m a l < / k e y > < s t y l e U r l > # m u l t i T r a c k _ n < / s t y l e U r l > < / P a i r > < P a i r > < k e y > h i g h l i g h t < / k e y > < s t y l e U r l > # m u l t i T r a c k _ h < / s t y l e U r l > < / P a i r > < / S t y l e M a p > < ! -N o r m a lw a y p o i n ts t y l e> < S t y l ei d = " w a y p o i n t _ n " > < I c o n S t y l e > < I c o n > < h r e f > h t t p : / / m a p s . g o o g l e . c o m / m a p f i l e s / k m l / p a l 4 / i c o n 6 1 . p n g < / h r e f > < / I c o n > < / I c o n S t y l e >
< / S t y l e > < ! -H i g h l i g h t e dw a y p o i n ts t y l e> < S t y l ei d = " w a y p o i n t _ h " > < I c o n S t y l e > < s c a l e > 1 . 2 < / s c a l e > < I c o n > < h r e f > h t t p : / / m a p s . g o o g l e . c o m / m a p f i l e s / k m l / p a l 4 / i c o n 6 1 . p n g < / h r e f > < / I c o n > < / I c o n S t y l e > < / S t y l e > < S t y l e M a pi d = " w a y p o i n t " > < P a i r > < k e y > n o r m a l < / k e y > < s t y l e U r l > # w a y p o i n t _ n < / s t y l e U r l > < / P a i r > < P a i r > < k e y > h i g h l i g h t < / k e y > < s t y l e U r l > # w a y p o i n t _ h < / s t y l e U r l > < / P a i r > < / S t y l e M a p > < S t y l ei d = " l i n e S t y l e " > < L i n e S t y l e > < c o l o r > 9 9 f f a c 5 9 < / c o l o r > < w i d t h > 6 < / w i d t h > < / L i n e S t y l e > < / S t y l e > < S c h e m ai d = " s c h e m a " > < g x : S i m p l e A r r a y F i e l dn a m e = " h e a r t r a t e "t y p e = " i n t " > < d i s p l a y N a m e > H e a r tR a t e < / d i s p l a y N a m e > < / g x : S i m p l e A r r a y F i e l d > < g x : S i m p l e A r r a y F i e l dn a m e = " c a d e n c e "t y p e = " i n t " > < d i s p l a y N a m e > C a d e n c e < / d i s p l a y N a m e > < / g x : S i m p l e A r r a y F i e l d > < g x : S i m p l e A r r a y F i e l dn a m e = " p o w e r "t y p e = " f l o a t " > < d i s p l a y N a m e > P o w e r < / d i s p l a y N a m e > < / g x : S i m p l e A r r a y F i e l d > < / S c h e m a > < F o l d e r > < n a m e > T r a c k s < / n a m e > < P l a c e m a r k > < n a m e > 2 0 1 0 0 5 2 8 T 0 1 : 1 6 : 3 5 . 0 0 0 Z < / n a m e > < s t y l e U r l > # m u l t i T r a c k < / s t y l e U r l > < g x : T r a c k > < w h e n > 2 0 1 0 0 5 2 8 T 0 2 : 0 2 : 0 9 Z < / w h e n > < w h e n > 2 0 1 0 0 5 2 8 T 0 2 : 0 2 : 3 5 Z < / w h e n > < w h e n > 2 0 1 0 0 5 2 8 T 0 2 : 0 2 : 4 4 Z < / w h e n > < w h e n > 2 0 1 0 0 5 2 8 T 0 2 : 0 2 : 5 3 Z < / w h e n > < w h e n > 2 0 1 0 0 5 2 8 T 0 2 : 0 2 : 5 4 Z < / w h e n > < w h e n > 2 0 1 0 0 5 2 8 T 0 2 : 0 2 : 5 5 Z < / w h e n > < w h e n > 2 0 1 0 0 5 2 8 T 0 2 : 0 2 : 5 6 Z < / w h e n > < g x : c o o r d > 1 2 2 . 2 0 7 8 8 13 7 . 3 7 1 9 1 51 5 6 . 0 0 0 0 0 0 < / g x : c o o r d > < g x : c o o r d > 1 2 2 . 2 0 5 7 1 23 7 . 3 7 3 2 8 81 5 2 . 0 0 0 0 0 0 < / g x : c o o r d > < g x : c o o r d > 1 2 2 . 2 0 4 6 7 83 7 . 3 7 3 9 3 91 4 7 . 0 0 0 0 0 0 < / g x : c o o r d > < g x : c o o r d > 1 2 2 . 2 0 3 5 7 23 7 . 3 7 4 6 3 01 4 2 . 1 9 9 9 9 7 < / g x : c o o r d > < g x : c o o r d > 1 2 2 . 2 0 3 4 5 13 7 . 3 7 4 7 0 61 4 1 . 8 0 0 0 0 3 < / g x : c o o r d > < g x : c o o r d > 1 2 2 . 2 0 3 3 2 93 7 . 3 7 4 7 8 01 4 1 . 1 9 9 9 9 7 < / g x : c o o r d > < g x : c o o r d > 1 2 2 . 2 0 3 2 0 73 7 . 3 7 4 8 5 71 4 0 . 1 9 9 9 9 7 < / g x : c o o r d > < E x t e n d e d D a t a > < S c h e m a D a t as c h e m a U r l = " # s c h e m a " > < g x : S i m p l e A r r a y D a t an a m e = " c a d e n c e " > < g x : v a l u e > 8 6 < / g x : v a l u e > < g x : v a l u e > 1 0 3 < / g x : v a l u e > < g x : v a l u e > 1 0 8 < / g x : v a l u e > < g x : v a l u e > 1 1 3 < / g x : v a l u e > < g x : v a l u e > 1 1 3 < / g x : v a l u e > < g x : v a l u e > 1 1 3 < / g x : v a l u e > < g x : v a l u e > 1 1 3 < / g x : v a l u e > < / g x : S i m p l e A r r a y D a t a > < g x : S i m p l e A r r a y D a t an a m e = " h e a r t r a t e " >
< g x : v a l u e > 1 8 1 < / g x : v a l u e > < g x : v a l u e > 1 7 7 < / g x : v a l u e > < g x : v a l u e > 1 7 5 < / g x : v a l u e > < g x : v a l u e > 1 7 3 < / g x : v a l u e > < g x : v a l u e > 1 7 3 < / g x : v a l u e > < g x : v a l u e > 1 7 3 < / g x : v a l u e > < g x : v a l u e > 1 7 3 < / g x : v a l u e > < / g x : S i m p l e A r r a y D a t a > < g x : S i m p l e A r r a y D a t an a m e = " p o w e r " > < g x : v a l u e > 3 2 7 . 0 < / g x : v a l u e > < g x : v a l u e > 1 7 7 . 0 < / g x : v a l u e > < g x : v a l u e > 1 7 9 . 0 < / g x : v a l u e > < g x : v a l u e > 1 6 2 . 0 < / g x : v a l u e > < g x : v a l u e > 1 6 6 . 0 < / g x : v a l u e > < g x : v a l u e > 1 7 7 . 0 < / g x : v a l u e > < g x : v a l u e > 1 8 3 . 0 < / g x : v a l u e > < / g x : S i m p l e A r r a y D a t a > < / S c h e m a D a t a > < / E x t e n d e d D a t a > < / g x : T r a c k > < / P l a c e m a r k > < / F o l d e r > < / D o c u m e n t > < / k m l >
Extends
<Geometry>
Contained By
<MultiGeometry> <gx:MultiTrack> <Placemark>
<Update>
Syntax
< U p d a t e > < t a r g e t H r e f > . . . < / t a r g e t H r e f > < C h a n g e > . . . < / C h a n g e > < C r e a t e > . . . < / C r e a t e > < D e l e t e > . . . < / D e l e t e > < / U p d a t e >
< ! -U R L>
Description
Specifies an addition, change, or deletion to KML data that has already been loaded using the specified URL. The <targetHref> specifies the .k ml or .k mz file whose data (within Google Earth) is to be modified. <Update> is always contained in a NetworkLinkControl. Furthermore, the file containing the NetworkLinkControl must have been loaded by a NetworkLink. See the "Topics in KML" page on Updates for a detailed example of how Update works.
Modifies the values in an element that has already been loaded with a <NetworkLink>. Within the Change element, the child to be modified must include a targetId attribute that references the original element's id. This update can be considered a "sparse update": in the modified element, only the values listed in <Change> are replaced; all other values remained untouched. When <Change> is applied to a set of coordinates, the new coordinates replace the current coordinates. Children of this element are the element(s) to be modified, which are identified by the targetId attribute. <Create> Adds new elements to a Folder or Document that has already been loaded via a <NetworkLink>. The <targetHref> element in <Update> specifies the URL of the .k ml or .k mz file that contained the original Folder or Document. Within that file, the Folder or Document that is to contain the new data must already have an explicit id defined for it. This id is referenced as the targetId attribute of the Folder or Document within <Create> that contains the element to be added. Once an object has been created and loaded into Google Earth, it takes on the URL of the original parent Document of Folder. To perform subsequent updates to objects added with this Update/Create mechanism, set <targetHref> to the URL of the original Document or Folder (not the URL of the file that loaded the intervening updates). <Delete> Deletes features from a complex element that has already been loaded via a <NetworkLink>. The <targetHref> element in <Update> specifies the .k ml or .k mz file containing the data to be deleted. Within that file, the element to be deleted must already have an explicit id defined for it. The <Delete> element references this id in the targetId attribute. Child elements for <Delete>, which are the only elements that can be deleted, are Document, Folder, GroundOverlay, Placemark, and ScreenOverlay.
Example of <Change>
< N e t w o r k L i n k C o n t r o l > < U p d a t e > < t a r g e t H r e f > h t t p : / / w w w / ~ s a m / J a n u a r y 1 4 D a t a / P o i n t . k m l < / t a r g e t H r e f > < C h a n g e > < P o i n tt a r g e t I d = " p o i n t 1 2 3 " > < c o o r d i n a t e s > 9 5 . 4 8 , 4 0 . 4 3 , 0 < / c o o r d i n a t e s > < / P o i n t > < / C h a n g e > < / U p d a t e > < / N e t w o r k L i n k C o n t r o l >
Example of <Create>
This example creates a new Placemark in a previously created Document that has an id of "region24." Note that if you want to make subsequent updates to "placemark891," you will still use http://myserver.com/Point.k ml as the <targetHref>. < U p d a t e > < t a r g e t H r e f > h t t p : / / m y s e r v e r . c o m / P o i n t . k m l < / t a r g e t H r e f > < C r e a t e > < D o c u m e n tt a r g e t I d = " r e g i o n 2 4 " > < P l a c e m a r ki d = " p l a c e m a r k 8 9 1 " > < P o i n t > < c o o r d i n a t e s > 9 5 . 4 8 , 4 0 . 4 3 , 0 < / c o o r d i n a t e s > < / P o i n t > < / P l a c e m a r k > < / D o c u m e n t > < / C r e a t e > < / U p d a t e >
Example of <Delete>
This example deletes a Placemark previously loaded into Google Earth. (This Placemark may have been loaded directly by a NetworkLink with the specified URL, or it may have been loaded by a subsequent Update to the original Document.) < U p d a t e > < t a r g e t H r e f > h t t p : / / w w w . f o o . c o m / P o i n t . k m l < / t a r g e t H r e f > < D e l e t e > < P l a c e m a r kt a r g e t I d = " p a 3 5 5 6 " > < / P l a c e m a r k > < / D e l e t e > < / U p d a t e >
Contained By
<NetworkLinkControl>
<Url>
Note: This element was deprecated in KML Release 2.1 and is replaced by <Link>, which provides the additional functionality of Regions. The <Url> tag will still work in Google Earth, but use of the newer <Link> tag is encouraged. Use this element to set the location of the link to the KML file, to define the refresh options for the server and viewer changes, and to populate a variable to return useful client information to the server. Back to top
Terms of Service
Privacy Policy
Jobs
Report a bug
English