View source: R/layers_icon-layer.R
use_default_icon_properties | R Documentation |
Returns icon properties with default values for iconAtlas
, iconMapping
and getIcon
, so that the default icon is used.
use_default_icon_properties( sizeScale = 15, getSize = 5, getColor = c(240, 140, 0) )
sizeScale |
icon size multiplier |
getSize |
height of each object (in pixels), if a number is provided, it is used as the size for all objects, if a function is provided, it is called on each object to retrieve its size |
getColor |
rgba color of each object, if an array is provided, it is used as the color for all objects if a function is provided, it is called on each object to retrieve its color |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.