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.