This function creates interactive maps that will be displayed in RStudio's 'Viewer' tab.
table_leaflet(
locationTbl = NULL,
maptype = "terrain",
extraVars = NULL,
locationOnly = FALSE,
...
)Tibble of known locations.
Optional name of leaflet ProviderTiles to use, e.g. terrain.
Character vector of addition locationTbl column names
to be shown in leaflet popups.
Logical specifying whether to check for all standard columns.
Additional arguments passed to leaflet::addCircleMarker().
A leaflet "plot" object which, if not assigned, is rendered in Rstudio's 'Viewer' tab.
The maptype argument is mapped onto leaflet "ProviderTile"
names. Current mappings include:
"roadmap" -- "OpenStreetMap"
"satellite" -- "Esri.WorldImagery"
"terrain" -- "Esri.WorldTopoMap"
"toner" -- "Stamen.Toner"
If a character string not listed above is provided, it will be used as the underlying map tile if available. See https://leaflet-extras.github.io/leaflet-providers/ for a list of "provider tiles" to use as the background map.