A new function
addLegendSymbolhas been added to automatically encode character/factors as various map symbols.
The default argument for
addLegendSizehas been changed to 20.
valuesargument is no longer used by
addLegendBinsince it is not necessary and causes problems when number of values is less than the number of bins.
Updated example in README
Documentation has been updated for
makeSymbolsand the name has been changed to
mapSymbolswith some additional functions added to it.
Internal functions have been renamed to match naming conventions.
makeSymbolsSizeto be consistent in naming conventions. The
colorValuesargument has been removed. For the same functionality, specify a vector of
Fixed issue with image styling missing for raster images in
Added functions to automate the task of creating map symbols.
addSymbolswill create map symbols based on a character or factor vector.
addSymbolsSizewill create map symbols with a size encoding.
Code re-factoring for
addLegendFactoras grouping of values for each is different but the assembly of the HTML is the same.
Unit tests have been added to cover all the current functions.
Gradient IDs for numeric legends are now based on the function call or data “name” in
makeSizeIconsdefault opacity is now 1.
Adding internal functions to add dependencies for
addLegendAwesomeIcon. Awesome Icons would not show in legends because the needed HTML dependencies were not loaded unless
addLegendAwesomeIconwill now check if the dependencies are in the “leaflet” map and include them if missing.
Added error messages for invalid
strokeWidtharguments. Prior to this negative values would not throw errors and the visual output of legends was not desirable.
Ability to specify
valuesparameter as a formula to retrieve from the
dataargument which is the same as the “leaflet” package.
makeSymbolIconsnow supports vectorization for multiple shape arguments
Awesome icons are now centered in a marker in
adding support for
textparameter passed to
addLegendAwesomeIcon. This allows an svg to be passed to as an icon.
CRAN release: 2022-03-03
patching examples that use png files from leaflet js site since they have moved.
adding leaf images png files for examples
CRAN release: 2022-01-17
added better error message for missing color and pal
addLegendLineto add height only encoding of size based on values
CRAN release: 2021-10-28
updated example in README
adding addLegendAwesomeIcon function to produce legends with markers from awesome icon libraries
adding in line and polygon symbol and adding symbols to the README
CRAN release: 2021-07-23
fixes error on makeSizeLegend where fillColor is not evaluated if no argument is provided
adding colorValues as an argument to makeSizeLegend so that symbols can be sized and colored on different vectors of data
fixes warning on addLegendNumeric where the shape default was a vector not a single value
adding number formatting to addSizeLegend
adding group layer support for legends. Use addLayersControl to turn on/off legends
added example for using raster images with size encodings based on data
CRAN release: 2021-05-21
stroke outlines of shapes are now padded so that the stroke is not cut off
numeric legends now have appropriate sizing for text
star symbol outline has been fixed
makeSizeIconsas a convenience wrapper size scaled symbols
CRAN release: 2021-02-23
sizeBreakswere added to allow encoding size on symbols.
addLegendImagesupports multiple height and width parameters for images where you want different sizes
addLegendImagenow supports using an svg URI from the output of
makeSymbol. To supply a custom svg URI, add the ‘svgURI’ class to the character vector.
added more shapes to
Control the opacity of the legend shapes for
makeSymbolnow returns embeddable svg