Make icon set

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")]
#> $red #> $iconUrl #> [1] "leaf-red.png" #> #> $iconWidth #> [1] 32 #> #> $iconHeight #> [1] 32 #> #> attr(,"class") #> [1] "leaflet_icon" #> #> $green #> $iconUrl #> [1] "leaf-green.png" #> #> $iconWidth #> [1] 32 #> #> $iconHeight #> [1] 32 #> #> attr(,"class") #> [1] "leaflet_icon" #> #> $red #> $iconUrl #> [1] "leaf-red.png" #> #> $iconWidth #> [1] 32 #> #> $iconHeight #> [1] 32 #> #> attr(,"class") #> [1] "leaflet_icon" #> #> attr(,"class") #> [1] "leaflet_icon_set"