leafletsyncOptions: leafletsync Options

View source: R/leafletsync.R

leafletsyncOptionsR Documentation

leafletsync Options

Description

Additional list of options.

Usage

leafletsyncOptions(
  noInitialSync = FALSE,
  syncCursor = TRUE,
  offsetFn = JS("function (center, zoom, refMap, tgtMap) { return center; }")
)

Arguments

noInitialSync

Setting to TRUE disables initial synchronization of the maps. The default is FALSE.

syncCursor

The default TRUE adds a circle marker on the synced map.

offsetFn

A JavaScript-function to compute an offset for the center.

Value

A list of options for addLeafletsync

See Also

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


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