mapboxgl_compare_proxy | R Documentation |
This function allows updates to be sent to an existing Mapbox GL Compare widget in a Shiny application.
mapboxgl_compare_proxy(
compareId,
session = shiny::getDefaultReactiveDomain(),
map_side = "before"
)
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". |
A proxy object for the Mapbox GL Compare widget.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.