Update a Mapdeck map in a shiny app. Use this function whenever the map needs to respond to reactive content.
mapdeck_update(
data = NULL,
map_id,
session = shiny::getDefaultReactiveDomain(),
deferUntilFlush = TRUE,
map_type = c("mapdeck_update", "google_map_update")
)
data to be used in the layer. All coordinates are expected to be EPSG:4326 (WGS 84) coordinate system
string containing the output ID of the map in a shiny application.
the Shiny session object to which the map belongs; usually the default value will suffice.
indicates whether actions performed against this instance should be carried out right away, or whether they should be held until after the next time all of the outputs are updated; defaults to TRUE.
either mapdeck_update or google_map_update