addLeafletsync | R Documentation |
The plugin allows you to synchronize and unsynchronize multiple leaflet maps
in a Shiny application. You can pass additional options
to leafletsyncOptions
. For more information see
Leaflet.Sync
addLeafletsync(
map,
ids = NULL,
synclist = "all",
options = leafletsyncOptions()
)
map |
the map |
ids |
the map ids to be synced. If you use a |
synclist |
The synchronization list. The default is |
options |
A named list of options. See |
A modified leaflet map
If you synchronize multiple maps, a map may not yet be
initialized and therefore cannot be used. Make sure to use
addLeafletsync
after all maps have been rendered.
https://github.com/jieter/Leaflet.Sync
Other leafletsync Functions:
addLeafletsyncDependency()
,
isSynced()
,
leafletsyncOptions()
,
unsync()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.