Learn R Programming

mapgl (version 0.2.1)

mapboxgl_proxy: Create a proxy object for a Mapbox GL map in Shiny

Description

This function allows updates to be sent to an existing Mapbox GL map in a Shiny application without redrawing the entire map.

Usage

mapboxgl_proxy(mapId, session = shiny::getDefaultReactiveDomain())

Value

A proxy object for the Mapbox GL map.

Arguments

mapId

The ID of the map output element.

session

The Shiny session object.