From 8b82166171bb12c0598bde6d465fcd888b7c8685 Mon Sep 17 00:00:00 2001 From: troh <thmsroh@gmail.com> Date: Thu, 21 Oct 2021 20:42:15 -0700 Subject: [PATCH] updating site --- docs/404.html | 2 +- docs/LICENSE-text.html | 2 +- docs/LICENSE.html | 2 +- docs/authors.html | 2 +- docs/index.html | 7 +- docs/logo.png | Bin 43920 -> 43920 bytes docs/news/index.html | 11 +- docs/pkgdown.yml | 19 +- docs/reference/addLeafLegends.html | 8 +- docs/reference/addLegendAwesomeIcon.html | 292 +++++++++++++++++++++++ docs/reference/addLegendImage.html | 2 +- docs/reference/addLegendSize.html | 2 +- docs/reference/figures/circle.svg | 4 + docs/reference/figures/cross.svg | 4 + docs/reference/figures/diamond.svg | 4 + docs/reference/figures/line.svg | 4 + docs/reference/figures/logo.png | Bin 43920 -> 43920 bytes docs/reference/figures/plus.svg | 4 + docs/reference/figures/polygon.svg | 4 + docs/reference/figures/rect.svg | 4 + docs/reference/figures/stadium.svg | 4 + docs/reference/figures/star.svg | 4 + docs/reference/figures/triangle.svg | 4 + docs/reference/index.html | 8 +- docs/reference/makeSymbol.html | 4 +- docs/sitemap.xml | 3 + 26 files changed, 379 insertions(+), 25 deletions(-) create mode 100644 docs/reference/addLegendAwesomeIcon.html create mode 100644 docs/reference/figures/circle.svg create mode 100644 docs/reference/figures/cross.svg create mode 100644 docs/reference/figures/diamond.svg create mode 100644 docs/reference/figures/line.svg create mode 100644 docs/reference/figures/plus.svg create mode 100644 docs/reference/figures/polygon.svg create mode 100644 docs/reference/figures/rect.svg create mode 100644 docs/reference/figures/stadium.svg create mode 100644 docs/reference/figures/star.svg create mode 100644 docs/reference/figures/triangle.svg 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 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="https://leaflegend.roh.engineering/index.html">leaflegend</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.5.0</span> </span> </div> 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 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="index.html">leaflegend</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.5.0</span> </span> </div> 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 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="index.html">leaflegend</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.5.0</span> </span> </div> 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 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="index.html">leaflegend</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.5.0</span> </span> </div> 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 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="index.html">leaflegend</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.5.0</span> </span> </div> @@ -149,6 +149,11 @@ <h2 class="hasAnchor"> height <span class="op">=</span> <span class="fl">30</span> <span class="op">)</span></code></pre></div> </div> +<div id="map-symbols" class="section level2"> +<h2 class="hasAnchor"> +<a href="#map-symbols" class="anchor"></a>Map Symbols</h2> +<p><img src="reference/figures/rect.svg" alt="rect" width="50" height="70" style="margin: 5px;"><img src="reference/figures/circle.svg" alt="circle" width="50" height="70" style="margin: 5px;"><img src="reference/figures/triangle.svg" alt="triangle" width="50" height="70" style="margin: 5px;"><img src="reference/figures/plus.svg" alt="plus" width="50" height="70" style="margin: 5px;"><img src="reference/figures/cross.svg" alt="cross" width="50" height="70" style="margin: 5px;"><img src="reference/figures/diamond.svg" alt="diamond" width="50" height="70" style="margin: 5px;"><img src="reference/figures/star.svg" alt="star" width="50" height="70" style="margin: 5px;"><img src="reference/figures/stadium.svg" alt="stadium" width="50" height="70" style="margin: 5px;"><img src="reference/figures/line.svg" alt="line" width="50" height="70" style="margin: 5px;"><img src="reference/figures/polygon.svg" alt="polygon" width="50" height="70" style="margin: 5px;"></p> +</div> </div> </div> diff --git a/docs/logo.png b/docs/logo.png index d2e960f6027e9e41bb478c6e944b2dd14f95655b..0dbf3d9e275665da882c2cbbdae5871ab348482c 100644 GIT binary patch delta 19 ZcmbPmooNCPO=QzB<4I2K*f{;?DgaQ-2%i7| delta 19 ZcmbPmooNCPO=MGLC@b%a**N{@DgaWx2;l$# 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 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">leaflegend</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.5.0</span> </span> </div> @@ -144,6 +144,15 @@ <h1 data-toc-skip>Changelog <small></small></h1> <small>Source: <a href='https://github.com/tomroh/leaflegend/blob/master/NEWS.md'><code>NEWS.md</code></a></small> </div> + <div id="leaflegend-050" class="section level1"> +<h1 class="page-header" data-toc-text="0.5.0"> +<a href="#leaflegend-050" class="anchor"></a>leaflegend 0.5.0<small> Unreleased </small> +</h1> +<ul> +<li><p>adding addLegendAwesomeIcon function to produce legends with markers from awesome icon libraries</p></li> +<li><p>adding in line and polygon symbol and adding symbols to the README</p></li> +</ul> +</div> <div id="leaflegend-040" class="section level1"> <h1 class="page-header" data-toc-text="0.4.0"> <a href="#leaflegend-040" class="anchor"></a>leaflegend 0.4.0<small> 2021-07-23 </small> 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 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">leaflegend</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.5.0</span> </span> </div> @@ -186,7 +186,7 @@ <h1>Add Customizable Color Legends to a 'leaflet' map widget</h1> title <span class='op'>=</span> <span class='cn'>NULL</span>, labelStyle <span class='op'>=</span> <span class='st'>""</span>, shape <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span><span class='st'>"rect"</span>, <span class='st'>"circle"</span>, <span class='st'>"triangle"</span>, <span class='st'>"plus"</span>, <span class='st'>"cross"</span>, <span class='st'>"diamond"</span>, <span class='st'>"star"</span>, - <span class='st'>"stadium"</span><span class='op'>)</span>, + <span class='st'>"stadium"</span>, <span class='st'>"line"</span>, <span class='st'>"polygon"</span><span class='op'>)</span>, orientation <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span><span class='st'>"vertical"</span>, <span class='st'>"horizontal"</span><span class='op'>)</span>, width <span class='op'>=</span> <span class='fl'>24</span>, height <span class='op'>=</span> <span class='fl'>24</span>, @@ -206,7 +206,7 @@ <h1>Add Customizable Color Legends to a 'leaflet' map widget</h1> title <span class='op'>=</span> <span class='cn'>NULL</span>, labelStyle <span class='op'>=</span> <span class='st'>""</span>, shape <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span><span class='st'>"rect"</span>, <span class='st'>"circle"</span>, <span class='st'>"triangle"</span>, <span class='st'>"plus"</span>, <span class='st'>"cross"</span>, <span class='st'>"diamond"</span>, <span class='st'>"star"</span>, - <span class='st'>"stadium"</span><span class='op'>)</span>, + <span class='st'>"stadium"</span>, <span class='st'>"line"</span>, <span class='st'>"polygon"</span><span class='op'>)</span>, orientation <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span><span class='st'>"vertical"</span>, <span class='st'>"horizontal"</span><span class='op'>)</span>, width <span class='op'>=</span> <span class='fl'>24</span>, height <span class='op'>=</span> <span class='fl'>24</span>, @@ -224,7 +224,7 @@ <h1>Add Customizable Color Legends to a 'leaflet' map widget</h1> title <span class='op'>=</span> <span class='cn'>NULL</span>, labelStyle <span class='op'>=</span> <span class='st'>""</span>, shape <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span><span class='st'>"rect"</span>, <span class='st'>"circle"</span>, <span class='st'>"triangle"</span>, <span class='st'>"plus"</span>, <span class='st'>"cross"</span>, <span class='st'>"diamond"</span>, <span class='st'>"star"</span>, - <span class='st'>"stadium"</span><span class='op'>)</span>, + <span class='st'>"stadium"</span>, <span class='st'>"line"</span>, <span class='st'>"polygon"</span><span class='op'>)</span>, orientation <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span><span class='st'>"vertical"</span>, <span class='st'>"horizontal"</span><span class='op'>)</span>, width <span class='op'>=</span> <span class='fl'>24</span>, height <span class='op'>=</span> <span class='fl'>24</span>, 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 @@ +<!-- Generated by pkgdown: do not edit by hand --> +<!DOCTYPE html> +<html lang="en"> + <head> + <meta charset="utf-8"> +<meta http-equiv="X-UA-Compatible" content="IE=edge"> +<meta name="viewport" content="width=device-width, initial-scale=1.0"> + +<title>Add a legend with Awesome Icons — addLegendAwesomeIcon • leaflegend</title> + +<!-- favicons --> +<link rel="icon" type="image/png" sizes="16x16" href="../favicon-16x16.png"> +<link rel="icon" type="image/png" sizes="32x32" href="../favicon-32x32.png"> +<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="../apple-touch-icon.png" /> +<link rel="apple-touch-icon" type="image/png" sizes="120x120" href="../apple-touch-icon-120x120.png" /> +<link rel="apple-touch-icon" type="image/png" sizes="76x76" href="../apple-touch-icon-76x76.png" /> +<link rel="apple-touch-icon" type="image/png" sizes="60x60" href="../apple-touch-icon-60x60.png" /> + +<!-- jquery --> +<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.4.1/jquery.min.js" integrity="sha256-CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFlBw8HfCJo=" crossorigin="anonymous"></script> +<!-- Bootstrap --> +<link href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/3.4.0/readable/bootstrap.min.css" rel="stylesheet" crossorigin="anonymous" /> + + +<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha256-nuL8/2cJ5NDSSwnKD8VqreErSWHtnEP9E7AySL+1ev4=" crossorigin="anonymous"></script> + +<!-- bootstrap-toc --> +<link rel="stylesheet" href="../bootstrap-toc.css"> +<script src="../bootstrap-toc.js"></script> + +<!-- Font Awesome icons --> +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/all.min.css" integrity="sha256-mmgLkCYLUQbXn0B1SRqzHar6dCnv9oZFPEC1g1cwlkk=" crossorigin="anonymous" /> +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.1/css/v4-shims.min.css" integrity="sha256-wZjR52fzng1pJHwx4aV2AO3yyTOXrcDW7jBpJtTwVxw=" crossorigin="anonymous" /> + +<!-- clipboard.js --> +<script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.6/clipboard.min.js" integrity="sha256-inc5kl9MA1hkeYUt+EC3BhlIgyp/2jDIyBLS6k3UxPI=" crossorigin="anonymous"></script> + +<!-- headroom.js --> +<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/headroom.min.js" integrity="sha256-AsUX4SJE1+yuDu5+mAVzJbuYNPHj/WroHuZ8Ir/CkE0=" crossorigin="anonymous"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/headroom/0.11.0/jQuery.headroom.min.js" integrity="sha256-ZX/yNShbjqsohH1k95liqY9Gd8uOiE1S4vZc+9KQ1K4=" crossorigin="anonymous"></script> + +<!-- pkgdown --> +<link href="../pkgdown.css" rel="stylesheet"> +<script src="../pkgdown.js"></script> + + +<!-- docsearch --> +<script src="../docsearch.js"></script> +<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/docsearch.js/2.6.3/docsearch.min.css" integrity="sha256-QOSRU/ra9ActyXkIBbiIB144aDBdtvXBcNc3OTNuX/Q=" crossorigin="anonymous" /> +<link href="../docsearch.css" rel="stylesheet"> +<script src="https://cdnjs.cloudflare.com/ajax/libs/mark.js/8.11.1/jquery.mark.min.js" integrity="sha256-4HLtjeVgH0eIB3aZ9mLYF6E8oU5chNdjU6p6rrXpl9U=" crossorigin="anonymous"></script> + + + +<meta property="og:title" content="Add a legend with Awesome Icons — addLegendAwesomeIcon" /> +<meta property="og:description" content="Add a legend with Awesome Icons" /> +<meta property="og:image" content="https://leaflegend.roh.engineering/logo.png" /> + + + + +<!-- mathjax --> +<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js" integrity="sha256-nvJJv9wWKEm88qvoQl9ekL2J+k/RWIsaSScxxlsrv8k=" crossorigin="anonymous"></script> +<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/config/TeX-AMS-MML_HTMLorMML.js" integrity="sha256-84DKXVJXs0/F8OTMzX4UR909+jtl4G7SPypPavF+GfA=" crossorigin="anonymous"></script> + +<!--[if lt IE 9]> +<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> +<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> +<![endif]--> + + +<!-- Global site tag (gtag.js) - Google Analytics --> +<script async src="https://www.googletagmanager.com/gtag/js?id=G-FEY7F5BR1Z"></script> +<script> + window.dataLayer = window.dataLayer || []; + function gtag(){dataLayer.push(arguments);} + gtag('js', new Date()); + + gtag('config', 'G-FEY7F5BR1Z'); +</script> + + + </head> + + <body data-spy="scroll" data-target="#toc"> + <div class="container template-reference-topic"> + <header> + <div class="navbar navbar-default navbar-fixed-top" role="navigation"> + <div class="container"> + <div class="navbar-header"> + <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false"> + <span class="sr-only">Toggle navigation</span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + <span class="icon-bar"></span> + </button> + <span class="navbar-brand"> + <a class="navbar-link" href="../index.html">leaflegend</a> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.5.0</span> + </span> + </div> + + <div id="navbar" class="navbar-collapse collapse"> + <ul class="nav navbar-nav"> + <li> + <a href="../index.html"> + <span class="fas fa-home fa-lg"></span> + + </a> +</li> +<li> + <a href="../reference/index.html">Reference</a> +</li> +<li> + <a href="../news/index.html">Changelog</a> +</li> + </ul> + <ul class="nav navbar-nav navbar-right"> + <li> + <a href="https://github.com/tomroh/leaflegend/"> + <span class="fab fa-github fa-lg"></span> + + </a> +</li> + </ul> + + <form class="navbar-form navbar-right hidden-xs hidden-sm" role="search"> + <div class="form-group"> + <input type="search" class="form-control" name="search-input" id="search-input" placeholder="Search..." aria-label="Search for..." autocomplete="off"> + </div> + </form> + + </div><!--/.nav-collapse --> + </div><!--/.container --> +</div><!--/.navbar --> + + + + </header> + +<div class="row"> + <div class="col-md-9 contents"> + <div class="page-header"> + <h1>Add a legend with Awesome Icons</h1> + <small class="dont-index">Source: <a href='https://github.com/tomroh/leaflegend/blob/master/R/legend.R'><code>R/legend.R</code></a></small> + <div class="hidden name"><code>addLegendAwesomeIcon.Rd</code></div> + </div> + + <div class="ref-description"> + <p>Add a legend with Awesome Icons</p> + </div> + + <pre class="usage"><span class='fu'>addLegendAwesomeIcon</span><span class='op'>(</span> + <span class='va'>map</span>, + <span class='va'>iconSet</span>, + title <span class='op'>=</span> <span class='cn'>NULL</span>, + labelStyle <span class='op'>=</span> <span class='st'>""</span>, + orientation <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span><span class='st'>"vertical"</span>, <span class='st'>"horizontal"</span><span class='op'>)</span>, + marker <span class='op'>=</span> <span class='cn'>TRUE</span>, + group <span class='op'>=</span> <span class='cn'>NULL</span>, + className <span class='op'>=</span> <span class='st'>"info legend leaflet-control"</span>, + <span class='va'>...</span> +<span class='op'>)</span></pre> + + <h2 class="hasAnchor" id="arguments"><a class="anchor" href="#arguments"></a>Arguments</h2> + <table class="ref-arguments"> + <colgroup><col class="name" /><col class="desc" /></colgroup> + <tr> + <th>map</th> + <td><p>a map widget object created from 'leaflet'</p></td> + </tr> + <tr> + <th>iconSet</th> + <td><p>a named list from <a href='https://rdrr.io/pkg/leaflet/man/awesomeIconList.html'>awesomeIconList</a>, the names will be the labels in the legend</p></td> + </tr> + <tr> + <th>title</th> + <td><p>the legend title, pass in HTML to style</p></td> + </tr> + <tr> + <th>labelStyle</th> + <td><p>character string of style argument for HTML text</p></td> + </tr> + <tr> + <th>orientation</th> + <td><p>stack the legend items vertically or horizontally</p></td> + </tr> + <tr> + <th>marker</th> + <td><p>whether to show the marker or only the icon</p></td> + </tr> + <tr> + <th>group</th> + <td><p>group name of a leaflet layer group</p></td> + </tr> + <tr> + <th>className</th> + <td><p>extra CSS class to append to the control, space separated</p></td> + </tr> + <tr> + <th>...</th> + <td><p>arguments to pass to <a href='https://rdrr.io/pkg/leaflet/man/map-layers.html'>addControl</a></p></td> + </tr> + </table> + + <h2 class="hasAnchor" id="value"><a class="anchor" href="#value"></a>Value</h2> + + <p>an object from <a href='https://rdrr.io/pkg/leaflet/man/map-layers.html'>addControl</a></p> + + <h2 class="hasAnchor" id="examples"><a class="anchor" href="#examples"></a>Examples</h2> + <pre class="examples"><div class='input'><span class='kw'><a href='https://rdrr.io/r/base/library.html'>library</a></span><span class='op'>(</span><span class='va'><a href='https://rstudio.github.io/leaflet/'>leaflet</a></span><span class='op'>)</span> +<span class='fu'><a href='https://rdrr.io/r/utils/data.html'>data</a></span><span class='op'>(</span><span class='va'>quakes</span><span class='op'>)</span> +<span class='va'>iconSet</span> <span class='op'><-</span> <span class='fu'><a href='https://rdrr.io/pkg/leaflet/man/awesomeIconList.html'>awesomeIconList</a></span><span class='op'>(</span> + `Font Awesome` <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/pkg/leaflet/man/makeAwesomeIcon.html'>makeAwesomeIcon</a></span><span class='op'>(</span>icon <span class='op'>=</span> <span class='st'>"font-awesome"</span>, library <span class='op'>=</span> <span class='st'>"fa"</span>, + iconColor <span class='op'>=</span> <span class='st'>'gold'</span>, markerColor <span class='op'>=</span> <span class='st'>'red'</span>, + spin <span class='op'>=</span> <span class='cn'>FALSE</span>, + squareMarker <span class='op'>=</span> <span class='cn'>TRUE</span>, + iconRotate <span class='op'>=</span> <span class='fl'>30</span>, + <span class='op'>)</span>, + Ionic <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/pkg/leaflet/man/makeAwesomeIcon.html'>makeAwesomeIcon</a></span><span class='op'>(</span>icon <span class='op'>=</span> <span class='st'>"ionic"</span>, library <span class='op'>=</span> <span class='st'>"ion"</span>, + iconColor <span class='op'>=</span> <span class='st'>'#fffff'</span>, markerColor <span class='op'>=</span> <span class='st'>'blue'</span>, + spin <span class='op'>=</span> <span class='cn'>TRUE</span>, + squareMarker <span class='op'>=</span> <span class='cn'>FALSE</span><span class='op'>)</span>, + Glyphicon <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/pkg/leaflet/man/makeAwesomeIcon.html'>makeAwesomeIcon</a></span><span class='op'>(</span>icon <span class='op'>=</span> <span class='st'>"plus-sign"</span>, library <span class='op'>=</span> <span class='st'>"glyphicon"</span>, + iconColor <span class='op'>=</span> <span class='st'>'rgb(192, 255, 0)'</span>, markerColor <span class='op'>=</span> <span class='st'>'darkpurple'</span>, + spin <span class='op'>=</span> <span class='cn'>TRUE</span>, + squareMarker <span class='op'>=</span> <span class='cn'>FALSE</span><span class='op'>)</span> +<span class='op'>)</span> +<span class='fu'><a href='https://rdrr.io/pkg/leaflet/man/leaflet.html'>leaflet</a></span><span class='op'>(</span><span class='va'>quakes</span><span class='op'>[</span><span class='fl'>1</span><span class='op'>:</span><span class='fl'>3</span>,<span class='op'>]</span><span class='op'>)</span> |> + <span class='fu'><a href='https://rdrr.io/pkg/leaflet/man/map-layers.html'>addTiles</a></span><span class='op'>(</span><span class='op'>)</span> |> + <span class='fu'><a href='https://rdrr.io/pkg/leaflet/man/addAwesomeMarkers.html'>addAwesomeMarkers</a></span><span class='op'>(</span>lat <span class='op'>=</span> <span class='op'>~</span><span class='va'>lat</span>, + lng <span class='op'>=</span> <span class='op'>~</span><span class='va'>long</span>, + icon <span class='op'>=</span> <span class='va'>iconSet</span><span class='op'>)</span> |> + <span class='fu'>addLegendAwesomeIcon</span><span class='op'>(</span>iconSet <span class='op'>=</span> <span class='va'>iconSet</span>, + orientation <span class='op'>=</span> <span class='st'>'horizontal'</span>, + title <span class='op'>=</span> <span class='fu'>htmltools</span><span class='fu'>::</span><span class='va'><a href='https://rdrr.io/pkg/htmltools/man/builder.html'>tags</a></span><span class='op'>$</span><span class='fu'>div</span><span class='op'>(</span> + style <span class='op'>=</span> <span class='st'>'font-size: 20px;'</span>, + <span class='st'>'Awesome Icons'</span><span class='op'>)</span>, + labelStyle <span class='op'>=</span> <span class='st'>'font-size: 16px;'</span><span class='op'>)</span> |> + <span class='fu'>addLegendAwesomeIcon</span><span class='op'>(</span>iconSet <span class='op'>=</span> <span class='va'>iconSet</span>, + orientation <span class='op'>=</span> <span class='st'>'vertical'</span>, + marker <span class='op'>=</span> <span class='cn'>FALSE</span>, + title <span class='op'>=</span> <span class='fu'>htmltools</span><span class='fu'>::</span><span class='va'><a href='https://rdrr.io/pkg/htmltools/man/builder.html'>tags</a></span><span class='op'>$</span><span class='fu'>div</span><span class='op'>(</span> + style <span class='op'>=</span> <span class='st'>'font-size: 20px;'</span>, + <span class='st'>'Awesome Icons'</span><span class='op'>)</span>, + labelStyle <span class='op'>=</span> <span class='st'>'font-size: 16px;'</span><span class='op'>)</span> +</div></pre> + </div> + <div class="col-md-3 hidden-xs hidden-sm" id="pkgdown-sidebar"> + <nav id="toc" data-toggle="toc" class="sticky-top"> + <h2 data-toc-skip>Contents</h2> + </nav> + </div> +</div> + + + <footer> + <div class="copyright"> + <p>Developed by <a href='https://roh.engineering/about'>Thomas Roh</a>.</p> +</div> + +<div class="pkgdown"> + <p>Site built with <a href="https://pkgdown.r-lib.org/">pkgdown</a> 1.6.1.</p> +</div> + + </footer> + </div> + + +<script src="https://cdnjs.cloudflare.com/ajax/libs/docsearch.js/2.6.1/docsearch.min.js" integrity="sha256-GKvGqXDznoRYHCwKXGnuchvKSwmx9SRMrZOTh2g4Sb0=" crossorigin="anonymous"></script> +<script> + docsearch({ + + + apiKey: '89d2953b5dfa27a60dd7d7bec9e087fa', + indexName: 'roh', + inputSelector: 'input#search-input.form-control', + transformData: function(hits) { + return hits.map(function (hit) { + hit.url = updateHitURL(hit); + return hit; + }); + } + }); +</script> + + + + </body> +</html> + + 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 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">leaflegend</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.5.0</span> </span> </div> 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 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">leaflegend</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.5.0</span> </span> </div> 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="54" height="74" style="background-color: white;"> + <circle id="circle" cx="27" cy="27" r="25" stroke="black" fill="transparent" stroke-opacity="1" fill-opacity="1" stroke-width="2"></circle> + <text x="25" y="70" font-family="sans-serif" text-anchor="middle" font-size="12px">circle</text> +</svg> 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="54" height="74" style="background-color: white;"> + <polygon id="cross" points="9.07106781186548,2 2,9.07106781186548 19.9289321881345,27 2,44.9289321881345 9.07106781186548,52 27,34.0710678118655 44.9289321881345,52 52,44.9289321881345 34.0710678118655,27 52,9.07106781186548 44.9289321881345,2 27,19.9289321881345 9.07106781186548,2" stroke="black" fill="transparent" stroke-opacity="1" fill-opacity="1" stroke-width="2"></polygon> + <text x="25" y="70" font-family="sans-serif" text-anchor="middle" font-size="12px">cross</text> +</svg> 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="54" height="74" style="background-color: white;"> + <polygon id="diamond" points="27,2 2,27 27,52 52,27 27,2" stroke="black" fill="transparent" stroke-opacity="1" fill-opacity="1" stroke-width="2"></polygon> + <text x="25" y="70" font-family="sans-serif" text-anchor="middle" font-size="12px">diamond</text> +</svg> 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="54" height="74" style="background-color: white;"> + <line id="line" x1="2" x2="52" y1="27" y2="27" stroke="black" stroke-opacity="1" fill-opacity="1" stroke-width="2"></line> + <text x="25" y="70" font-family="sans-serif" text-anchor="middle" font-size="12px">line</text> +</svg> diff --git a/docs/reference/figures/logo.png b/docs/reference/figures/logo.png index d2e960f6027e9e41bb478c6e944b2dd14f95655b..0dbf3d9e275665da882c2cbbdae5871ab348482c 100644 GIT binary patch delta 19 ZcmbPmooNCPO=QzB<4I2K*f{;?DgaQ-2%i7| delta 19 ZcmbPmooNCPO=MGLC@b%a**N{@DgaWx2;l$# 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="54" height="74" style="background-color: white;"> + <polygon id="plus" points="22,2 22,22 2,22 2,32 22,32 22,52 32,52 32,32 52,32 52,22 32,22 32,2 22,2" stroke="black" fill="transparent" stroke-opacity="1" fill-opacity="1" stroke-width="2"></polygon> + <text x="25" y="70" font-family="sans-serif" text-anchor="middle" font-size="12px">plus</text> +</svg> 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="54" height="74" style="background-color: white;"> + <polygon id="polygon" points="27,2 3.22358709262116,19.2745751406263 12.3053686926882,47.2254248593737 41.6946313073118,47.2254248593737 50.7764129073788,19.2745751406263 27,2" stroke="black" fill="transparent" stroke-opacity="1" fill-opacity="1" stroke-width="2"></polygon> + <text x="25" y="70" font-family="sans-serif" text-anchor="middle" font-size="12px">polygon</text> +</svg> 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="54" height="74" style="background-color: white;"> + <rect id="rect" x="2" y="2" height="50" width="50" stroke="black" fill="transparent" stroke-opacity="1" fill-opacity="1" stroke-width="2"></rect> + <text x="25" y="70" font-family="sans-serif" text-anchor="middle" font-size="12px">rect</text> +</svg> 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="54" height="74" style="background-color: white;"> + <rect id="stadium" x="2" y="2" height="50" width="50" rx="25%" stroke="black" fill="transparent" stroke-opacity="1" fill-opacity="1" stroke-width="2"></rect> + <text x="25" y="70" font-family="sans-serif" text-anchor="middle" font-size="12px">stadium</text> +</svg> 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="54" height="74" style="background-color: white;"> + <polygon id="star" points="22,2 22,14.92893 9.07107,2 2,9.07107 14.92893,22 2,22 2,32 14.92893,32 2,44.92893 9.07107,52 22,39.07107 22,52 32,52 32,39.07107 44.92893,52 52,44.92893 39.07107,32 52,32 52,22 39.07107,22 52,9.07107 44.92893,2 32,14.92893 32,2 22,2" stroke="black" fill="transparent" stroke-opacity="1" fill-opacity="1" stroke-width="2"></polygon> + <text x="25" y="70" font-family="sans-serif" text-anchor="middle" font-size="12px">star</text> +</svg> 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 @@ +<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="54" height="74" style="background-color: white;"> + <polygon id="triangle" points="2,52 52,52 27,2" stroke="black" fill="transparent" stroke-opacity="1" fill-opacity="1" stroke-width="2"></polygon> + <text x="25" y="70" font-family="sans-serif" text-anchor="middle" font-size="12px">triangle</text> +</svg> 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 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">leaflegend</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.5.0</span> </span> </div> @@ -171,6 +171,12 @@ <h2 id="section-all-functions" class="hasAnchor"><a href="#section-all-functions <td><p>Add Customizable Color Legends to a 'leaflet' map widget</p></td> </tr><tr> + <td> + <p><code><a href="addLegendAwesomeIcon.html">addLegendAwesomeIcon()</a></code> </p> + </td> + <td><p>Add a legend with Awesome Icons</p></td> + </tr><tr> + <td> <p><code><a href="addLegendImage.html">addLegendImage()</a></code> </p> </td> 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 @@ </button> <span class="navbar-brand"> <a class="navbar-link" href="../index.html">leaflegend</a> - <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.4.0</span> + <span class="version label label-default" data-toggle="tooltip" data-placement="bottom" title="Released version">0.5.0</span> </span> </div> @@ -163,7 +163,7 @@ <h1>Create an SVG tag for the symbol</h1> <span class='fu'>makeSymbolIcons</span><span class='op'>(</span> shape <span class='op'>=</span> <span class='fu'><a href='https://rdrr.io/r/base/c.html'>c</a></span><span class='op'>(</span><span class='st'>"rect"</span>, <span class='st'>"circle"</span>, <span class='st'>"triangle"</span>, <span class='st'>"plus"</span>, <span class='st'>"cross"</span>, <span class='st'>"diamond"</span>, <span class='st'>"star"</span>, - <span class='st'>"stadium"</span><span class='op'>)</span>, + <span class='st'>"stadium"</span>, <span class='st'>"line"</span>, <span class='st'>"polygon"</span><span class='op'>)</span>, <span class='va'>color</span>, fillColor <span class='op'>=</span> <span class='va'>color</span>, <span class='va'>opacity</span>, 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 @@ <url> <loc>https://leaflegend.roh.engineering/reference/addLeafLegends.html</loc> </url> + <url> + <loc>https://leaflegend.roh.engineering/reference/addLegendAwesomeIcon.html</loc> + </url> <url> <loc>https://leaflegend.roh.engineering/reference/addLegendImage.html</loc> </url>