addLeafletsync {leaflet.extras2} | R Documentation |
Synchronize multiple Leaflet map
Description
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
Usage
addLeafletsync(
map,
ids = NULL,
synclist = "all",
options = leafletsyncOptions()
)
Arguments
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 |
Value
A modified leaflet map
Note
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.
References
https://github.com/jieter/Leaflet.Sync
See Also
Other leafletsync Functions:
addLeafletsyncDependency()
,
isSynced()
,
leafletsyncOptions()
,
unsync()