leaflegend 1.2.1
CRAN release: 2024-05-09
-
addLegendNumericnow has the ability to use manual tick breaks and labels when thebinsargument is a numeric vector greater than length 1. This only applies to vertically oriented legends.
leaflegend 1.2.0
CRAN release: 2024-01-10
addLegendNumericgainslabelStyleargument and significant improvements to the layout that will handle larger font sizes and long text widths.added
stackedargument toaddLegendSizeto allow size legends that are more compact when symbols are overlayed. See examples in?addLegendSize.groups can now have underscores in their name for show/hide functionality.
added
betweenargument toaddLegendBinandaddLegendQuantileso that users can change the dash.fixed issue where
addSymbolsandaddSymbolsSizeonly worked when directly specifyinglatandlng. These now work for sf objects.added
dashArrayargument for symbols functions. The main purpose is to allow dashed line encodings, but all symbols can have dashed outer lines.
leaflegend 1.1.1
CRAN release: 2023-08-19
updating test for ‘leaflet’ changes in v2.2.0
pch solid symbols 15-20 will use
coloriffillColoris missing
leaflegend 1.1.0
CRAN release: 2023-05-04
availableShapesis provided for convenience to look up supported symbol names.addLegendFactor,addLegendBin, andaddLegendQuantilewill now show a symbol for missing values if they exist and gain thenaLabelargument.Label spacing adjustments for
addLegendNumericwhich should support longer labels.addLegendNumericgains an argumentnaLabeland now shows the NA color when there are missing values.addLegendNumericgains an argumentlabelswhich allows the user to pass label names for numeric breaks.The
breaksargument inaddLegendLineandaddLegendSizenow allows the user to pass a named list where the names are the labels.makeSymbolandmakeSymbolIconscan now create map symbols that are consistent with base Rpch. Theshapeargument can accept the name or an integer (0-indexed).availableShapesprovides a list of named options.
leaflegend 1.0.0
CRAN release: 2022-08-05
A new function
addLegendSymbolhas been added to automatically encode character/factors as various map symbols.The default argument for
baseSizeinaddLegendSizehas been changed to 20.valuesargument is no longer used byaddLegendBinsince 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 tomapSymbolswith some additional functions added to it.Internal functions have been renamed to match naming conventions.
Renamed
makeSizeIconstomakeSymbolsSizeto be consistent in naming conventions. ThecolorValuesargument has been removed. For the same functionality, specify a vector ofcolorandfillColor.Fixed issue with image styling missing for raster images in
addLegendImageAdded 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
addLegendBin,addLegendQuantile, andaddLegendFactoras 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
values.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 unlessaddAwesomeIconswas included.addLegendAwesomeIconwill now check if the dependencies are in the “leaflet” map and include them if missing.Added error messages for invalid
width,height,tickWidth,tickLength, andstrokeWidtharguments. 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 thedataargument which is the same as the “leaflet” package.makeSymbolIconsnow supports vectorization for multiple shape argumentsAwesome icons are now centered in a marker in
addLegendAwesomeIconadding support for
textparameter passed toaddLegendAwesomeIcon. This allows an svg to be passed to as an icon.
leaflegend 0.6.1
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
leaflegend 0.6.0
CRAN release: 2022-01-17
updated layers control to handle special characters in group name. All non-alphanumeric characters are removed from the class names and javascript selectors.
added better error message for missing color and pal
adding
addLegendLineto add height only encoding of size based on values
leaflegend 0.5.0
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
leaflegend 0.4.0
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
leaflegend 0.3.0
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
new function
makeSizeIconsas a convenience wrapper size scaled symbols
leaflegend 0.2.0
CRAN release: 2021-02-23
new functions
addLegendSize,sizeNumeric, andsizeBreakswere added to allow encoding size on symbols.addLegendImagesupports multiple height and width parameters for images where you want different sizesaddLegendImagenow supports using an svg URI from the output ofmakeSymbol. To supply a custom svg URI, add the ‘svgURI’ class to the character vector.added more shapes to
makeSymbol,addLegendNumeric,addLegendQuantile,addLegendFactor,addLegendBinControl the opacity of the legend shapes for
addLegendNumeric,addLegendQuantile,addLegendFactor,addLegendBinmakeSymbolnow returns embeddable svg
