Skip to contents

A proxy addresses a widget that is already on screen, so a Shiny app can replace its project with update_geolibre() or drive the live map with the geolibre_*() command functions, without re-rendering the widget.

Usage

geolibre_proxy(outputId, session = NULL)

Arguments

outputId

ID of an existing GeoLibre widget.

session

A Shiny session. Defaults to the current reactive domain.

Value

A geolibre_proxy object.

Examples

if (interactive() && requireNamespace("shiny", quietly = TRUE)) {
  proxy <- geolibre_proxy("map")
}