Description Usage Arguments Value Author(s) References See Also
These functions allow one to create various different types of KML nodes. The type of node created corresponds to the name of the function. The parameters typically correspond to sub-elements of these
1 2 3 4 5 6 7 8 | createLookAt(window, parent)
addGroundOverlay(doc, ..., parent = xmlRoot(doc)[["Document"]],
node = newXMLNode("GroundOverlay", parent = parent))
addScreenOverlay(doc, ..., parent = xmlRoot(doc)[["Document"]],
node = newXMLNode("ScreenOverlay", parent = parent))
addPlacemark(point, name, description = character(), id = character(), styleUrl = character(), time = NA, parent = NULL)
addIcon(file, color = character(), parent = NULL)
addDescription(text, parent = NULL, cdata = TRUE, sep = "")
|
window |
a named vector giving the sub-elements of the LookAt node. |
parent |
the parent XML node. |
doc |
the top-level XML document whose Document node will act as the parent for the new node. |
... |
name = vale pairs that are used to populate the node. These correspond to sub-nodes or possibly attributes. |
node |
the node being created which can be specified by the caller in case she wants to use the function to fill in the node, but not use the standard name. |
styleUrl |
the name of a style or an explict URL. These should be anchored, i.e. prefixed with \# if local. |
point |
a vector of longitude and latitude values. |
name |
the name of the Placemar, used as a label in the folder in the "Places" view |
id |
the value of the id attribute to use for the new node. |
time |
the time for a TimeStamp element when creating the Placemark. |
file |
the name of the file for the Icon/image |
color |
the color for the image, given as a string. |
description,text |
the text for the description. |
cdata |
a logical value indicating whether the text for the description should be "escaped" within a CDATA block. |
sep |
the separator to use for the elements of the |
The newly created node.
Duncan Temple Lang
http://code.google.com/apis/kml/documentation/kmlreference.html
There are more R-friendly functions for some of these low-level
construction functions, e.g.
groundOverlay
and
kmlLegend
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.