table_leafletAdd: Add to a leaflet interactive map for known locations

View source: R/table_leafletAdd.R

table_leafletAddR Documentation

Add to a leaflet interactive map for known locations

Description

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.

Usage

table_leafletAdd(
  map = NULL,
  locationTbl = NULL,
  extraVars = NULL,
  jitter = 5e-04,
  ...
)

Arguments

map

Leaflet map.

locationTbl

Tibble of known locations.

extraVars

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

jitter

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().

Value

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


MazamaLocationUtils documentation built on Sept. 11, 2024, 9:08 p.m.