am.item: Add Item

View source: R/amapro.R

am.itemR Documentation

Add Item

Description

Add an item to a map

Usage

am.item(id, itype, ...)

Arguments

id

A valid widget from am.init

itype

A string for item type name, like 'Marker'

...

attributes of item

Details

To add an item like Marker, Text or Polyline to the map

Value

A map widget to plot, or to save and expand with more features

See Also

am.init code example

Examples

if (interactive()) {
  am.init() |> am.item('Marker', position=c(116.6, 40))
}

amapro documentation built on May 31, 2023, 8:03 p.m.