R/table_leafletAdd.R
table_leafletAdd.Rd
This function adds a layer to an interactive map displayed in
RStudio's 'Viewer' tab. The default setting of jitter
will move locations
randomly within an ~50 meter radius so that overlapping locations can be
identified. Set jitter = 0
to see precise locations.
table_leafletAdd(
map = NULL,
locationTbl = NULL,
extraVars = NULL,
jitter = 5e-04,
...
)
Leaflet map.
Tibble of known locations.
Character vector of addition locationTbl
column names
to be shown in leaflet popups.
Amount to use to slightly adjust locations so that multiple
monitors at the same location can be seen. Use zero or NA
to see
precise locations.
Additional arguments passed to leaflet::addCircleMarkers()
.
A leaflet "plot" object which, if not assigned, is rendered in Rstudio's 'Viewer' tab.