How can I add a custom description field to a kml file exported from R?
Where Coords_wgs
is a SpatialPointsDataFrame class object.
writeOGR(Coords_wgs, dsn = GEfilename,
layer = "layer",
driver="KML",
dataset_options=c("NameField=name", "DescriptionField=THIS IS A TEST"),
overwrite_layer=TRUE)
The Name shows up, but the description balloon only shows the other attribute data.
I really am looking to add an image to the description balloon by setting the "DescriptionField=" the following text
<img src='file:///c:\temp\IMG_1234.jpg' width='400' /><br/>
Photo example!<br/>