iconList: Make icon set

View source: R/layers.R

iconListR Documentation

Make icon set

Description

Make icon set

Usage

iconList(...)

Arguments

...

icons created from makeIcon()

Examples


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 Aug. 8, 2024, 11:06 a.m.