[Maturing]

map_sv_odkc(
  svs,
  sve,
  sites,
  wastd_url = wastdr::get_wastd_url(),
  fmt = "%d/%m/%Y %H:%M",
  tz = "Australia/Perth",
  cluster = FALSE
)

Arguments

svs

The output of turtleviewer::turtledata$svs - data from ODK form Site Visit Start 0.3.

sve

The output of turtleviewer::turtledata$sve - data from ODK form Site Visit End 0.2.

sites

An sf object of sites with site_name and polygon geom, e.g. turtleviewer::turtledata$sites.

wastd_url

The base URL for WAStD, default: get_wastd_url()

fmt

The desired date format, default: "d/m/Y H:M"

tz

The lubridate timezone, default: "Australia/Perth

cluster

If TRUE, cluster map markers. Default: FALSE. Note: In some places, the aerial background layer does not provide imagery at sufficient zoom levels, and therefore restricts the map zoom at levels where the cluster markers don't expand. Switch to "Place names" to let cluster markers expand.

Value

A leaflet map

Details

Creates a Leaflet map of site visit start and end points. The maps auto-zooms to the extent of data given.

Examples

if (FALSE) {
data("odkc_data")
map_sv_odkc(odkc_data$svs, odkc_data$sve, sites = odkc_data$sites)
}