am.inspect {amapro}R Documentation

Map to JSON

Description

Convert map elements to JSON string

Usage

am.inspect(wt, json = TRUE, ...)

Arguments

wt

An amapro widget as returned by am.init

json

Boolean whether to return a JSON, or a list, default TRUE

...

Additional arguments to pass to toJSON

Details

Must be invoked or chained as last command.

Value

A JSON string if json is TRUE and a list otherwise.

Examples

if (interactive()) {
  am.init(viewMode= '3D', zoom= 10, pitch= 60) |>
    am.control(ctype= 'ControlBar', position= 'RT') |>
    am.inspect()
}

[Package amapro version 0.1.3 Index]