iconList: Make icon set

Description Usage Arguments Examples

View source: R/layers.R

Description

Make icon set

Usage

1

Arguments

...

icons created from makeIcon()

Examples

1
2
3
4
5
6
iconSet <- iconList(
  red = makeIcon("leaf-red.png", iconWidth = 32, iconHeight = 32),
  green = makeIcon("leaf-green.png", iconWidth = 32, iconHeight = 32)
)

iconSet[c("red", "green", "red")]

rstudio/leaflet documentation built on June 7, 2018, 8 a.m.