- Google KML Reader/Writer
- Google KML Quick Facts
- Resource Traversal
- Google KML Reader Parameters
- Google KML Writer Parameters
- KML Writer Feature Type Properties: Format Parameters
- Writer Pipelines
- Atom Metadata
- Style Management and Common Styles
- Document Element Omission
- Raw Text
- Update Mode
- Feature Representation
- KML Dataset Structure
- File Structure
- Identifying Elements
- Documents and Folders
- Tours
- Extended Data
- User Defined Schema
- Layers and Feature Type Fanout
- Feature Attributes
- Geometry
- 3D
- Fixed Schema
- Common Element Attributes
- Common Format Attributes
- NetworkLinkControl
- Document
- Folder
- Placemark
- ScreenOverlay
- GroundOverlay
- PhotoOverlay
- NetworkLink
- Style
- StyleMap
- Tour
- AnimatedUpdate
- FlyTo
- SoundCue
- TourControl
- Wait
You are here: Popular FormatsGoogle KML Reader/WriterStyle Management and Common StylesTargeting Styles
Targeting Styles
Previous versions of the KML writer required the use of the kml_style_url attribute to manually reference style elements. Use of kml_style_url is still supported, but use of the new kml_target_style format attribute is now recommended.
The value of the kml_target_style format attribute should be the id of a Style or StyleMap element that is also being written. As the dataset is being written, the writer will resolve each target id into the required style url, irregardless of what kml file the style element resides in.