powered by
An icon can be represented as a list of the form list(color, iconSize, ...). This function is vectorized over its arguments to create a list of icon data. Shorter argument values will be re-cycled. NULL values for these arguments will be ignored.
list(color, iconSize, ...)
NULL
mapkeyIcons( icon = "mapkey", color = "#ff0000", iconSize = 12, background = "#1F7499", borderRadius = "100%", hoverScale = 1.4, hoverEffect = TRUE, hoverCSS = NULL, additionalCSS = NULL, htmlCode = NULL, boxShadow = TRUE )
A list of mapkey-icon data that can be passed to the argument icon
icon
ID of the mapkey Icon you want to use.
Any CSS color (e.g. 'red','rgba(20,160,90,0.5)', '#686868', ...)
Size of Icon in Pixels. Default is 12
Any CSS color or false for no background
Any number (for circle size/2, for square 0.001)
Any real number (best result in range 1 - 2, use 1 for no effect)
Switch on/off effect on hover
CSS code (e.g. "background-color:#992b00 !important; color:#99defc !important;")
"background-color:#992b00 !important; color:#99defc !important;"
CSS code (e.g. "border:4px solid #aa3838;")
"border:4px solid #aa3838;"
e.g. ''.
''
Should a shadow be visible
https://github.com/mapshakers/leaflet-mapkey-icon
Other Mapkey Functions: [.leaflet_mapkey_icon_set(), addMapkeyMarkers(), makeMapkeyIcon(), mapkeyIconList()
[.leaflet_mapkey_icon_set()
addMapkeyMarkers()
makeMapkeyIcon()
mapkeyIconList()
if (FALSE) { library(leaflet) leaflet() %>% addMapkeyMarkers( data = breweries91, icon = mapkeyIcons( color = "red", borderRadius = 0, iconSize = 25 ) ) }
Run the code above in your browser using DataLab