mapboxgl_compare_proxy: Create a proxy object for a Mapbox GL Compare widget in Shiny

View source: R/plugins.R

mapboxgl_compare_proxyR Documentation

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

Description

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

Usage

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

Value

A proxy object for the Mapbox GL Compare widget.


mapgl documentation built on June 8, 2025, 1:57 p.m.