Learn R Programming

TargomoR (version 0.2.0)

addTimeLegend: Add Time Legend to Map

Description

Add Time Legend to Map

Usage

addTimeLegend(map, palette, values, options, group)

Arguments

map

A leaflet map

palette

A colour palette (from createTimePalette)

values

Values to use (travel times)

options
group

The layer group to add the legend to

Value

The leaflet map with the time legend in a control