add_legend: Add legend to the map

Description Usage Arguments

Description

Add legend to the map

Usage

1
add_legend(ol, colors, labels, title = NULL, style = NULL, overlay = TRUE)

Arguments

ol

map widget

colors

vector of colors

labels

vector of text labels corresponding to the colors

title

title of the legend or NULL (no title)

style

list of css style definition applied to the legend (container)

overlay

display on top of the map or below?


crazycapivara/openlayers documentation built on June 4, 2019, 8:08 p.m.