maplibre_compare_proxy function

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

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

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" )

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".

Returns

A proxy object for the Maplibre GL Compare widget.

  • Maintainer: Kyle Walker
  • License: MIT + file LICENSE
  • Last published: 2025-03-18