Monday, February 26, 2007

KML Styles

As with external CSS and HTML files, you can define styles in one KML file that you reference in other KML files. For example, you can create a file called mystyles.kml that contains the following:

<Document>
<Style id="foo">
... style description
</Style>
</Document>

Any other KML file you create can call the following:

<styleUrl>http://foo.com/mystyles.kml#foo</styleUrl>

For a detailed description of how to use style tags, view the KML reference. Learn more about KML.

No comments: