Skip to contents

Make Mapkey-icon set

Usage

mapkeyIconList(...)

Arguments

...

icons created from makeMapkeyIcon()

Value

A list of class "leaflet_mapkey_icon_set"

See also

Examples

iconSet <- mapkeyIconList(
  red = makeMapkeyIcon(color = "#ff0000"),
  blue = makeMapkeyIcon(color = "#0000ff")
)
iconSet[c("red", "blue")]
#> $red
#> $icon
#> [1] "mapkey"
#> 
#> $color
#> [1] "#ff0000"
#> 
#> $size
#> [1] 12
#> 
#> $background
#> [1] "#1F7499"
#> 
#> $borderRadius
#> [1] "100%"
#> 
#> $hoverScale
#> [1] 1.4
#> 
#> $hoverEffect
#> [1] TRUE
#> 
#> $boxShadow
#> [1] TRUE
#> 
#> attr(,"class")
#> [1] "leaflet_mapkey_icon"
#> 
#> $blue
#> $icon
#> [1] "mapkey"
#> 
#> $color
#> [1] "#0000ff"
#> 
#> $size
#> [1] 12
#> 
#> $background
#> [1] "#1F7499"
#> 
#> $borderRadius
#> [1] "100%"
#> 
#> $hoverScale
#> [1] 1.4
#> 
#> $hoverEffect
#> [1] TRUE
#> 
#> $boxShadow
#> [1] TRUE
#> 
#> attr(,"class")
#> [1] "leaflet_mapkey_icon"
#> 
#> attr(,"class")
#> [1] "leaflet_mapkey_icon_set"