The escape hatch behind the geolibre_*() command functions: it forwards any
method the application's scripting bridge implements. The reply arrives
asynchronously on the input$id_result input described in geolibreOutput().
Usage
geolibre_command(proxy, method, params = list(), request_id = NULL)Arguments
- proxy
A GeoLibre proxy created by
geolibre_proxy().- method
The scripting method name, for example
"flyTo"or"toImage".- params
Named list of parameters for the method.
- request_id
Optional id echoed back with the reply, so several in-flight commands can be told apart. Generated when omitted.
Examples
if (interactive() && requireNamespace("shiny", quietly = TRUE)) {
geolibre_command(geolibre_proxy("map"), "zoomToLayer", list(layerId = "abc"))
}