Learn R Programming

mapgl (version 0.2.1)

maplibre_compare_proxy: Create a proxy object for a Maplibre GL Compare widget in Shiny

Description

This function allows updates to be sent to an existing Maplibre GL Compare widget in a Shiny application.

Usage

maplibre_compare_proxy(
  compareId,
  session = shiny::getDefaultReactiveDomain(),
  map_side = "before"
)

Value

A proxy object for the Maplibre GL Compare widget.

Arguments

compareId

The ID of the compare output element.

session

The Shiny session object.

map_side

Which map side to target in the compare widget, either "before" or "after".