preview | R Documentation |
Allow you to quickly view your kml object. You must install Google Earth to your computer. Make sure .kml ae associated with google earth by defult
yourkml$preview()
Brent Cameron
Department of Fisheries and Oceans Canada
Population Ecology Division
mykml = RKmlObject()
mykml$addFolder(fid = "EMPTY", name = "EMPTY")
x = data.frame(cbind(c(45.9178, 46.807), c(-59.967, -60.321)))
names(x) = c("lat", "lon")
mykml$addPoint(x)
#mykml$preview()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.