kml:Document

Element Information

Model

Attributes

QName Type Fixed Default Use Inheritable Annotation
id ID optional
targetId NCName optional

Source

<element name="Document" type="kml:DocumentType" substitutionGroup="kml:Feature"/>

Sample

< Document xmlns = "http://www.opengis.net/kml/2.2" >

[...]

< name>

KML Samples

</ name>

< open>

1

</ open>

< description>

Unleash your creativity with the help of these examples!

</ description>

< Style id = "downArrowIcon" >

< IconStyle>

< Icon>

< href>

http://maps.google.com/mapfiles/kml/pal4/icon28.png

</ href>

</ Icon>

</ IconStyle>

</ Style>

< Style id = "globeIcon" >

< IconStyle>

< Icon>

< href>

http://maps.google.com/mapfiles/kml/pal3/icon19.png

</ href>

</ Icon>

</ IconStyle>

< LineStyle>

< width>

2

</ width>

</ LineStyle>

</ Style>

< Style id = "transPurpleLineGreenPoly" >

< LineStyle>

< color>

7fff00ff

</ color>

< width>

4

</ width>

</ LineStyle>

< PolyStyle>

< color>

7f00ff00

</ color>

</ PolyStyle>

</ Style>

< Style id = "yellowLineGreenPoly" >

< LineStyle>

< color>

7f00ffff

</ color>

< width>

4

</ width>

</ LineStyle>

< PolyStyle>

< color>

7f00ff00

</ color>

</ PolyStyle>

</ Style>

< Style id = "thickBlackLine" >

< LineStyle>

< color>

87000000

</ color>

< width>

10

</ width>

</ LineStyle>

</ Style>

< Style id = "redLineBluePoly" >

< LineStyle>

< color>

ff0000ff

</ color>

</ LineStyle>

< PolyStyle>

< color>

ffff0000

</ color>

</ PolyStyle>

</ Style>

< Style id = "blueLineRedPoly" >

< LineStyle>

< color>

ffff0000

</ color>

</ LineStyle>

< PolyStyle>

< color>

ff0000ff

</ color>

</ PolyStyle>

</ Style>

< Style id = "transRedPoly" >

< LineStyle>

< width>

1.5

</ width>

</ LineStyle>

< PolyStyle>

< color>

7d0000ff

</ color>

</ PolyStyle>

</ Style>

< Style id = "transBluePoly" >

< LineStyle>

< width>

1.5

</ width>

</ LineStyle>

< PolyStyle>

< color>

7dff0000

</ color>

</ PolyStyle>

</ Style>

< Style id = "transGreenPoly" >

< LineStyle>

< width>

1.5

</ width>

</ LineStyle>

< PolyStyle>

< color>

7d00ff00

</ color>

</ PolyStyle>

</ Style>

< Style id = "transYellowPoly" >

< LineStyle>

< width>

1.5

</ width>

</ LineStyle>

< PolyStyle>

< color>

7d00ffff

</ color>

</ PolyStyle>

</ Style>

< Style id = "noDrivingDirections" >

< BalloonStyle>

< text>

<b>$[name]</b> <br /><br /> $[description]

</ text>

</ BalloonStyle>

</ Style>

< Folder>

< name>

Placemarks

</ name>

< description>

These are just some of the different kinds of placemarks with which you can mark your favorite places

</ description>

< LookAt>

< longitude>

-122.0839597145766

</ longitude>

< latitude>

37.42222904525232

</ latitude>

< altitude>

0

</ altitude>

< heading>

-148.4122922628044

</ heading>

< tilt>

40.5575073395506

</ tilt>

< range>

500.6566641072245

</ range>

</ LookAt>

< Placemark>

< name>

Simple placemark

</ name>

< description>

Attached to the ground. Intelligently places itself at the height of the underlying terrain.

</ description>

< Point>

< coordinates>

-122.0822035425683,37.42228990140251,0

</ coordinates>

</ Point>

</ Placemark>

< Placemark>

< name>

Floating placemark

</ name>

< visibility>

0

</ visibility>

< description>

Floats a defined distance above the ground.

</ description>

< LookAt>

< longitude>

-122.0839597145766

</ longitude>

< latitude>

37.42222904525232

</ latitude>

< altitude>

0

</ altitude>

< heading>

-148.4122922628044

</ heading>

< tilt>

40.5575073395506

</ tilt>

< range>

500.6566641072245

</ range>

</ LookAt>

< styleUrl>

#downArrowIcon

</ styleUrl>

< Point>

< altitudeMode>

relativeToGround

</ altitudeMode>

< coordinates>

-122.084075,37.4220033612141,50

</ coordinates>

</ Point>

</ Placemark>

< Placemark>

< name>

Extruded placemark

</ name>

< visibility>

0

</ visibility>

< description>

Tethered to the ground by a customizable "tail"

</ description>

< LookAt>

< longitude>

-122.0845787421525

</ longitude>

< latitude>

37.42215078737763

</ latitude>

< altitude>

0

</ altitude>

< heading>

-148.4126684946234

</ heading>

< tilt>

40.55750733918048

</ tilt>

< range>

365.2646606980322

</ range>

</ LookAt>

< styleUrl>

#globeIcon

</ styleUrl>

< Point>

< extrude>

1

</ extrude>

< altitudeMode>

relativeToGround

</ altitudeMode>

< coordinates>

-122.0857667006183,37.42156927867553,50

</ coordinates>

</ Point>

</ Placemark>

</ Folder>

< Folder>

< name>

Styles and Markup

</ name>

< visibility>

0

</ visibility>

< description>

With KML it is easy to create rich, descriptive markup to annotate and enrich your placemarks

</ description>

< LookAt>

< longitude>

-122.0845787422371

</ longitude>

< latitude>

37.42215078726837

</ latitude>

< altitude>

0

</ altitude>

< heading>

-148.4126777488172

</ heading>

< tilt>

40.55750733930874

</ tilt>

< range>

365.2646826292919

</ range>

</ LookAt>

< styleUrl>

#noDrivingDirections

</ styleUrl>

< Document>