diff --git a/docs/404.html b/docs/404.html index a5741c2..cba0159 100644 --- a/docs/404.html +++ b/docs/404.html @@ -95,7 +95,7 @@ leaflegend - 0.4.0 + 0.5.0 diff --git a/docs/LICENSE-text.html b/docs/LICENSE-text.html index ed52ee5..8106f32 100644 --- a/docs/LICENSE-text.html +++ b/docs/LICENSE-text.html @@ -95,7 +95,7 @@ leaflegend - 0.4.0 + 0.5.0 diff --git a/docs/LICENSE.html b/docs/LICENSE.html index ba08120..ee8f5fc 100644 --- a/docs/LICENSE.html +++ b/docs/LICENSE.html @@ -95,7 +95,7 @@ leaflegend - 0.4.0 + 0.5.0 diff --git a/docs/authors.html b/docs/authors.html index 475a781..575faaf 100644 --- a/docs/authors.html +++ b/docs/authors.html @@ -95,7 +95,7 @@ leaflegend - 0.4.0 + 0.5.0 diff --git a/docs/index.html b/docs/index.html index 304615c..b439996 100644 --- a/docs/index.html +++ b/docs/index.html @@ -48,7 +48,7 @@ leaflegend - 0.4.0 + 0.5.0 @@ -149,6 +149,11 @@

height = 30 ) +
+

+Map Symbols

+

rectcircletrianglepluscrossdiamondstarstadiumlinepolygon

+
diff --git a/docs/logo.png b/docs/logo.png index d2e960f..0dbf3d9 100644 Binary files a/docs/logo.png and b/docs/logo.png differ diff --git a/docs/news/index.html b/docs/news/index.html index 43ba2ab..048e65e 100644 --- a/docs/news/index.html +++ b/docs/news/index.html @@ -95,7 +95,7 @@ leaflegend - 0.4.0 + 0.5.0 @@ -144,6 +144,15 @@

Changelog

Source: NEWS.md +
+

+leaflegend 0.5.0 Unreleased +

+ +

leaflegend 0.4.0 2021-07-23 diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 520854a..aa71771 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -1,10 +1,9 @@ - -pandoc: 2.11.4 -pkgdown: 1.6.1 -pkgdown_sha: ~ -articles: {} -last_built: 2021-08-06T01:37Z -urls: - reference: https://leaflegend.roh.engineering/reference - article: https://leaflegend.roh.engineering/articles - +pandoc: 2.14.0.3 +pkgdown: 1.6.1 +pkgdown_sha: ~ +articles: {} +last_built: 2021-10-22T03:41Z +urls: + reference: https://leaflegend.roh.engineering/reference + article: https://leaflegend.roh.engineering/articles + diff --git a/docs/reference/addLeafLegends.html b/docs/reference/addLeafLegends.html index b009f85..0ad3c24 100644 --- a/docs/reference/addLeafLegends.html +++ b/docs/reference/addLeafLegends.html @@ -100,7 +100,7 @@ leaflegend - 0.4.0 + 0.5.0

@@ -186,7 +186,7 @@

Add Customizable Color Legends to a 'leaflet' map widget

title = NULL, labelStyle = "", shape = c("rect", "circle", "triangle", "plus", "cross", "diamond", "star", - "stadium"), + "stadium", "line", "polygon"), orientation = c("vertical", "horizontal"), width = 24, height = 24, @@ -206,7 +206,7 @@

Add Customizable Color Legends to a 'leaflet' map widget

title = NULL, labelStyle = "", shape = c("rect", "circle", "triangle", "plus", "cross", "diamond", "star", - "stadium"), + "stadium", "line", "polygon"), orientation = c("vertical", "horizontal"), width = 24, height = 24, @@ -224,7 +224,7 @@

Add Customizable Color Legends to a 'leaflet' map widget

title = NULL, labelStyle = "", shape = c("rect", "circle", "triangle", "plus", "cross", "diamond", "star", - "stadium"), + "stadium", "line", "polygon"), orientation = c("vertical", "horizontal"), width = 24, height = 24, diff --git a/docs/reference/addLegendAwesomeIcon.html b/docs/reference/addLegendAwesomeIcon.html new file mode 100644 index 0000000..36d91d0 --- /dev/null +++ b/docs/reference/addLegendAwesomeIcon.html @@ -0,0 +1,292 @@ + + + + + + + + +Add a legend with Awesome Icons — addLegendAwesomeIcon • leaflegend + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+ + + + +
+ +
+
+ + +
+

Add a legend with Awesome Icons

+
+ +
addLegendAwesomeIcon(
+  map,
+  iconSet,
+  title = NULL,
+  labelStyle = "",
+  orientation = c("vertical", "horizontal"),
+  marker = TRUE,
+  group = NULL,
+  className = "info legend leaflet-control",
+  ...
+)
+ +

Arguments

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
map

a map widget object created from 'leaflet'

iconSet

a named list from awesomeIconList, the names will be the labels in the legend

title

the legend title, pass in HTML to style

labelStyle

character string of style argument for HTML text

orientation

stack the legend items vertically or horizontally

marker

whether to show the marker or only the icon

group

group name of a leaflet layer group

className

extra CSS class to append to the control, space separated

...

arguments to pass to addControl

+ +

Value

+ +

an object from addControl

+ +

Examples

+
library(leaflet) +data(quakes) +iconSet <- awesomeIconList( + `Font Awesome` = makeAwesomeIcon(icon = "font-awesome", library = "fa", + iconColor = 'gold', markerColor = 'red', + spin = FALSE, + squareMarker = TRUE, + iconRotate = 30, + ), + Ionic = makeAwesomeIcon(icon = "ionic", library = "ion", + iconColor = '#fffff', markerColor = 'blue', + spin = TRUE, + squareMarker = FALSE), + Glyphicon = makeAwesomeIcon(icon = "plus-sign", library = "glyphicon", + iconColor = 'rgb(192, 255, 0)', markerColor = 'darkpurple', + spin = TRUE, + squareMarker = FALSE) +) +leaflet(quakes[1:3,]) |> + addTiles() |> + addAwesomeMarkers(lat = ~lat, + lng = ~long, + icon = iconSet) |> + addLegendAwesomeIcon(iconSet = iconSet, + orientation = 'horizontal', + title = htmltools::tags$div( + style = 'font-size: 20px;', + 'Awesome Icons'), + labelStyle = 'font-size: 16px;') |> + addLegendAwesomeIcon(iconSet = iconSet, + orientation = 'vertical', + marker = FALSE, + title = htmltools::tags$div( + style = 'font-size: 20px;', + 'Awesome Icons'), + labelStyle = 'font-size: 16px;') +
+
+ +
+ + + +
+ + + + + + + + + + + diff --git a/docs/reference/addLegendImage.html b/docs/reference/addLegendImage.html index e8db41e..a948b37 100644 --- a/docs/reference/addLegendImage.html +++ b/docs/reference/addLegendImage.html @@ -100,7 +100,7 @@ leaflegend - 0.4.0 + 0.5.0 diff --git a/docs/reference/addLegendSize.html b/docs/reference/addLegendSize.html index 6e3c706..f1eeeaf 100644 --- a/docs/reference/addLegendSize.html +++ b/docs/reference/addLegendSize.html @@ -96,7 +96,7 @@ leaflegend - 0.4.0 + 0.5.0 diff --git a/docs/reference/figures/circle.svg b/docs/reference/figures/circle.svg new file mode 100644 index 0000000..09ac641 --- /dev/null +++ b/docs/reference/figures/circle.svg @@ -0,0 +1,4 @@ + + + circle + diff --git a/docs/reference/figures/cross.svg b/docs/reference/figures/cross.svg new file mode 100644 index 0000000..d562ca9 --- /dev/null +++ b/docs/reference/figures/cross.svg @@ -0,0 +1,4 @@ + + + cross + diff --git a/docs/reference/figures/diamond.svg b/docs/reference/figures/diamond.svg new file mode 100644 index 0000000..33a22bb --- /dev/null +++ b/docs/reference/figures/diamond.svg @@ -0,0 +1,4 @@ + + + diamond + diff --git a/docs/reference/figures/line.svg b/docs/reference/figures/line.svg new file mode 100644 index 0000000..2e27732 --- /dev/null +++ b/docs/reference/figures/line.svg @@ -0,0 +1,4 @@ + + + line + diff --git a/docs/reference/figures/logo.png b/docs/reference/figures/logo.png index d2e960f..0dbf3d9 100644 Binary files a/docs/reference/figures/logo.png and b/docs/reference/figures/logo.png differ diff --git a/docs/reference/figures/plus.svg b/docs/reference/figures/plus.svg new file mode 100644 index 0000000..51c70a8 --- /dev/null +++ b/docs/reference/figures/plus.svg @@ -0,0 +1,4 @@ + + + plus + diff --git a/docs/reference/figures/polygon.svg b/docs/reference/figures/polygon.svg new file mode 100644 index 0000000..18354ff --- /dev/null +++ b/docs/reference/figures/polygon.svg @@ -0,0 +1,4 @@ + + + polygon + diff --git a/docs/reference/figures/rect.svg b/docs/reference/figures/rect.svg new file mode 100644 index 0000000..daeb1f5 --- /dev/null +++ b/docs/reference/figures/rect.svg @@ -0,0 +1,4 @@ + + + rect + diff --git a/docs/reference/figures/stadium.svg b/docs/reference/figures/stadium.svg new file mode 100644 index 0000000..6343920 --- /dev/null +++ b/docs/reference/figures/stadium.svg @@ -0,0 +1,4 @@ + + + stadium + diff --git a/docs/reference/figures/star.svg b/docs/reference/figures/star.svg new file mode 100644 index 0000000..f48af62 --- /dev/null +++ b/docs/reference/figures/star.svg @@ -0,0 +1,4 @@ + + + star + diff --git a/docs/reference/figures/triangle.svg b/docs/reference/figures/triangle.svg new file mode 100644 index 0000000..29c0d30 --- /dev/null +++ b/docs/reference/figures/triangle.svg @@ -0,0 +1,4 @@ + + + triangle + diff --git a/docs/reference/index.html b/docs/reference/index.html index 9dddcdb..a54f384 100644 --- a/docs/reference/index.html +++ b/docs/reference/index.html @@ -95,7 +95,7 @@ leaflegend - 0.4.0 + 0.5.0 @@ -171,6 +171,12 @@

addLegendAwesomeIcon()

+ +

Add a legend with Awesome Icons

+ +

addLegendImage()

diff --git a/docs/reference/makeSymbol.html b/docs/reference/makeSymbol.html index 4095ae6..9a3ecf0 100644 --- a/docs/reference/makeSymbol.html +++ b/docs/reference/makeSymbol.html @@ -96,7 +96,7 @@ leaflegend - 0.4.0 + 0.5.0 @@ -163,7 +163,7 @@

Create an SVG tag for the symbol

makeSymbolIcons( shape = c("rect", "circle", "triangle", "plus", "cross", "diamond", "star", - "stadium"), + "stadium", "line", "polygon"), color, fillColor = color, opacity, diff --git a/docs/sitemap.xml b/docs/sitemap.xml index ce1ed32..9398e32 100644 --- a/docs/sitemap.xml +++ b/docs/sitemap.xml @@ -6,6 +6,9 @@ https://leaflegend.roh.engineering/reference/addLeafLegends.html + + https://leaflegend.roh.engineering/reference/addLegendAwesomeIcon.html + https://leaflegend.roh.engineering/reference/addLegendImage.html