[Maturing]

map_tt_odkc(
  data,
  sites = NULL,
  wastd_url = wastdr::get_wastd_url(),
  fmt = "%d/%m/%Y %H:%M",
  tz = "Australia/Perth",
  cluster = FALSE
)

Arguments

data

The output of odkc_data$tt from ODK form Turtle Tagging 3.0.

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 with an interactive legend offering to toggle each species separately. The maps auto-zooms to the extent of data given.

This map function uses data from ODK Central / ruODK using form "Turtle Tagging 3.0".

Examples

if (FALSE) {
data("odkc_data")
map_tt_odkc(odkc_data$tt, sites = odkc_data$sites)
map_tt_odkc(data = NULL, sites = odkc_data$sites)
}