addLeafletsyncDependency: Add the Leaflet Sync JS dependencies

View source: R/leafletsync.R

addLeafletsyncDependencyR Documentation

Add the Leaflet Sync JS dependencies

Description

Sometimes it makes sense to include the Leaflet Sync dependencies already before synchronizing maps. For example, if you want to use the 'L.Sync.offsetHelper'. See the example in ./inst/examples/offsetHelper.R

Usage

addLeafletsyncDependency(map)

Arguments

map

the map

Value

A modified leaflet map

See Also

Other leafletsync Functions: addLeafletsync(), isSynced(), leafletsyncOptions(), unsync()


leaflet.extras2 documentation built on Aug. 21, 2023, 5:08 p.m.