makeStyle: Create and add styles to a KML document

Description Usage Arguments Value Author(s) References

Description

These functions allow one to create and add definitions of styles to control the appearance of KML objects. The idea is that we define a library of styles "centrally" and refer to these when creating KML objects that appear on the globe.

Usage

1
2
makeStyle(attrs, id, parent = NULL)
addStyles(doc, docStyles)

Arguments

attrs

a list or vector giving the elements of the style.

id

a string used as the identifier/name for the style

parent

the XML node to which this new style should be added as a child node

doc

the parsed KML document to which to add the style definitions

docStyles

a list of style definitions/descriptions

Value

The newly created XML Style node.

Author(s)

Duncan Temple Lang

References

http://code.google.com/apis/kml/documentation/kmlreference.html\#style


duncantl/RKML documentation built on May 15, 2019, 5:31 p.m.