am.item | R Documentation |
Add an item to a map
am.item(id, itype, ...)
id |
A valid widget from am.init |
itype |
A string for item type name, like 'Marker' |
... |
attributes of item |
To add an item like Marker, Text or Polyline to the map
A map widget to plot, or to save and expand with more features
am.init code example
if (interactive()) {
am.init() |> am.item('Marker', position=c(116.6, 40))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.