writeGATkml | R Documentation |
This function writes a KML file of the spatial layer.
writeGATkml(myshp, filename, filepath, myidvar = "GEOID10")
myshp |
A spatial layer. |
filename |
The desired name for the KML file. |
filepath |
The desired location for the KML file. |
myidvar |
A variable of unique values for the spatial layer. |
# creates the kml file in the project root directory
if (interactive()) {
writeGATkml(myshp = hftown, filename = "my_kml_example",
filepath = getwd(), myidvar = "TOWN")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.