Description Usage Arguments Note Examples
builds kml folders using kml building blocks
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | hexBinary(col = "#A40000")
kml.document(title = "kml_file", body = "#---#")
kml.folder(name = "folder_1", body = "#---#")
kml.placemark.line(color = "#A40000", width = 3, name = "line1",
coords = cbind(c(24.71, 24.71, 24.73), c(45.59, 45.61, 45.6)))
kml.placemark.points(color = "#4E9A06", scale = 1, name = "pt1",
icon = "http://maps.google.com/mapfiles/kml/pal2/icon18.png",
coords = c(24.71, 45.59), datetime = Sys.time())
build.kml.folders(dat, width = 3, scale = 1,
colfun = col_factor("Paired", NULL))
|
width |
line width |
scale |
symbol scale |
dat |
a data.table containing id, datetime_, lat, lon |
colfun |
a function , default to scales::col_factor() |
for now dat is hardwired but this will change (dat should be a proper spacetime object or it should take id, datetime_, lat, lon as arguments)
1 | x = randomTracks() %>% build.kml.folders
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.