Skip to contents

Add a Control to a map.

Usage

am.control(id, ctype = NULL, ...)

Arguments

id

amapro id or widget from am.init

ctype

A string for name of control, like 'Scale','ControlBar','ToolBar'.

...

A named list of parameters for the chosen control

Value

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

Details

controls are ControlBar, ToolBar and Scale.
Parameters could be position or offset.

See also

am.init code example

Examples

if (interactive()) {
  am.init() |> am.control("Scale")
}