Update a Mapdeck map in a shiny app. Use this function whenever the map needs to respond to reactive content.
1 2 3 4 5 6 7 |
data |
data to be used in the layer. All coordinates are expected to be EPSG:4326 (WGS 84) coordinate system |
map_id |
string containing the output ID of the map in a shiny application. |
session |
the Shiny session object to which the map belongs; usually the default value will suffice. |
deferUntilFlush |
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. |
map_type |
either mapdeck_update or google_map_update |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.