OGC 07-147r2
146
Copyright © 2007, 2008 Open Geospatial Consortium, Inc. All Rights Reserved.
applicable
kml:PolyStyle
outline element value is 1 or true, and lines connecting extruded
kml:Placemarks
with a
kml:Point
geometry to the ground. Use
kml:LineStyle
to specify the color, color mode, and width of the line. For extruded
kml:LineStrings
, the line itself uses the current
kml:LineStyle
, and the extrusion uses the current
kml:PolyStyle
.
12.11.3 Content 12.11.3.1 kml:width
12.11.3.1.1 Description
Width of the line, in pixels.
12.11.3.1.2 Content
Type: xsd:double Default Value:
1.0
12.11.3.2 kml:LineStyleSimpleExtensionGroup
See 6.6.3.1 Simple Element Substitution.
12.11.3.3 kml:LineStyleObjectExtensionGroup
See 6.6.3.2 Complex Element Substitution.
OGC 07-147r2
Copyright © 2007, 2008 Open Geospatial Consortium, Inc. All Rights Reserved.
147
12.11.4 Example
kml xmlns=http:www.opengis.netkml2.2 Document
nameLineStyle.kmlname open1open
Style id=linestyleExample
LineStyle
color7f0000ffcolor width4width
LineStyle
Style Placemark
nameLineStyle Examplename styleUrllinestyleExamplestyleUrl
LineString extrude1extrude
tessellate1tessellate coordinates
-122.364383,37.824664,0 -122.364152,37.824322,0 coordinates
LineString Placemark
Document kml
12.12 kml:PolyStyle 12.12.1 Structure
kml:PolyStyle id=ID [0..1]
targetId=NCName [0..1] kml:ObjectSimpleExtensionGroup ... kml:ObjectSimpleExtensionGroup [0..]
kml:AbstractSubStyleSimpleExtensionGroup ... kml:AbstractSubStyleSimpleExtensionGroup [0..]
kml:AbstractSubStyleObjectExtensionGroup ... kml:AbstractSubStyleObjectExtensionGroup [0..]
kml:color ... kml:color [0..1] kml:colorMode ... kml:colorMode [0..1]
kml:AbstractColorStyleSimpleExtensionGroup ... kml:AbstractColorStyleSimpleExtensionGroup [0..]
kml:AbstractColorStyleObjectExtensionGroup ... kml:AbstractColorStyleObjectExtensionGroup [0..]
kml:fill ... kml:fill [0..1] kml:outline ... kml:outline [0..1]
kml:PolyStyleSimpleExtensionGroup ... kml:PolyStyleSimpleExtensionGroup [0..]
kml:PolyStyleObjectExtensionGroup ... kml:PolyStyleObjectExtensionGroup [0..]
kml:PolyStyle
12.12.2 Description
This element can be used wherever the following element is referenced:
OGC 07-147r2
148
Copyright © 2007, 2008 Open Geospatial Consortium, Inc. All Rights Reserved. • kml:AbstractColorStyleGroup
Specifies the drawing style for a
kml:Polygon
, including a
kml:Polygon
and the extruded portion of a
kml:Polygon
or
kml:LineString
.
kml:PolyStyle
should contain at least one child element outside of an update context, that is when not a descendant of
kml:Update
.
12.12.3 Content 12.12.3.1 kml:fill