This function adds interactive maps that will be displayed in RStudio's 'Viewer' tab.

table_leafletAdd(
  map = NULL,
  locationTbl = NULL,
  extraVars = NULL,
  locationOnly = FALSE,
  ...
)

Arguments

map

Leaflet map.

locationTbl

Tibble of known locations.

extraVars

Character vector of addition locationTbl column names to be shown in leaflet popups.

locationOnly

Logical specifying whether to check for all standard columns.

...

Additional arguments passed to leaflet::addCircleMarker().

Value

A leaflet "plot" object which, if not assigned, is rendered in Rstudio's 'Viewer' tab.