This function allows updates to be sent to an existing Maplibre GL Compare widget in a Shiny application.
maplibre_compare_proxy(
compareId,
session = shiny::getDefaultReactiveDomain(),
map_side = "before"
)
A proxy object for the Maplibre GL Compare widget.
The ID of the compare output element.
The Shiny session object.
Which map side to target in the compare widget, either "before" or "after".