OGC 07-147r2
Copyright © 2007, 2008 Open Geospatial Consortium, Inc. All Rights Reserved.
37
type=applicationvnd.google-earth.kml+xml
To indicate that the target resource is a KMZ archive specify the following MIME type:
type=applicationvnd.google-earth.kmz
For example, the type attribute below indicates that an earth browser should attempt to load the target as a KML resource even though the file extension is .php:
a href=myserver.comcgi-bingenerate-kml.phpplacemark123 type=applicationvnd.google-earth.kml+xml
9.1.3.10.2 Content
Type: xsd:string Default Value:
none
9.1.3.11 kml:AbstractViewGroup
Specifies a viewpoint for the
kml:AbstractFeatureGroup
. See 14.1 AbstractViewGroup.
9.1.3.12 kml:AbstractTimePrimitiveGroup
Affects the visibility of the
kml:AbstractFeatureGroup.
See 15.1 kml:AbstractTimePrimitiveGroup.
9.1.3.13 kml:styleURL
9.1.3.13.1 Description
Specifies a reference to a
kml:Style
or
kml:StyleMap
. The reference shall be encoded as a
URL with a fragment component see 12.9.3.1. The value of the fragment shall be the id of a
kml:Style
or
kml:StyleMap
defined in a
kml:Document
. See also 12.2 kml:Style; 12.3 kml:StyleMap, and 6.4 Shared Styles.
9.1.3.13.2 Content
Type: xsd:anyURI Default Value:
none
OGC 07-147r2
38
Copyright © 2007, 2008 Open Geospatial Consortium, Inc. All Rights Reserved.
9.1.3.13.3 Example
To reference a
kml:Style
or
kml:StyleMap
in the same document:
styleUrlmyIconStyleIDstyleUrl
To reference a
kml:Style
or
kml:StyleMap
in a hosted document:
styleUrlhttp:someserver.comsomestylefile.xmlrestaurantstyleUrl
9.1.3.14 kml:AbstractStyleSelectorGroup
One or more
kml:Styles
or
kml:StyleMaps
used to style the
kml:Feature
. See also 12.1 kml:AbstractStyleSelectorGroup and 6.4 Shared Styles.
9.1.3.15 kml:Region
Affects the visibility of the
kml:AbstractFeatureGroup
. See 9.13 kml:Region.
9.1.3.16 kml:ExtendedData
Allows for the addition of user-defined data. See 9.2 ExtendedData.
9.1.3.17 kml:AbstractFeatureSimpleExtensionGroup
See 6.6.3.1 Simple Element Substitution.
9.1.3.18 kml:AbstractFeatureObjectExtensionGroup
See 6.6.3.2 Complex Element Substitution.
OGC 07-147r2
Copyright © 2007, 2008 Open Geospatial Consortium, Inc. All Rights Reserved.
39
9.1.4 Examples
9.1.4.1 Sample Use of HTML Elements within a Description
kml xmlns=http:www.opengis.netkml2.2 Placemark
nameFeature.kmlname Snippet maxLines=4
The snippet is a way of providing an alternative
description that will be shown in the List view.
Snippet
description
[CDATA[ Styles: iItalicsi, bBoldb, uUnderlinedu,
sStrike Outs, subscriptsubsubscriptsub, superscriptsupsuperscriptsup,
bigBigbig, smallSmallsmall, ttTypewritertt, emEmphasizedem, strongStrongstrong, codeCodecode
hr Fonts:
font color=redred by namefont, font color=408010leaf green by hexadecimal RGBfont,
font size=1size 1font, font size=2size 2font, font size=3size 3font, font size=4size 4font,
font size=5size 5font, font size=6size 6font, font size=7size 7font,
font face=timesTimesfont, font face=verdanaVerdanafont,
font face=arialArialfont br
hr Links:
a href=http:doc.trolltech.com3.3qstylesheet.html QT Rich Text Rendering
a br
hr Alignment:
br p align=leftleftpp align=centercenterp
p align=rightrightp hr
Ordered Lists: br
olliFirstliliSecondliliThirdliol ol type=aliFirstliliSecondliliThirdliol
ol type=AliFirstliliSecondliliThirdliol hr
Unordered Lists: br
ulliAliliBliliCliul ul type=circleliAliliBliliCliul
ul type=squareliAliliBliliCliul hr
Definitions: br
dl dtScrumpydt