());
</code></pre><p><em>Returns</em>: a <code><a href="/mapbox.js/api/v2.2.4/l-mapbox-legendcontrol">L.mapbox.legendControl</a></code> object.</p>
<p><em>Class</em>: <code><a href="/mapbox.js/api/v2.2.4/l-mapbox-legendcontrol">L.mapbox.LegendControl</a></code></p>
<h3 id="section-legendcontrol-addlegend">legendControl.addLegend(legend)</h3>
<p>Adds a legend to the legendControl.</p>
<table>
<thead>
<tr>
<th>Options</th>
<th>Value</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td>legend <em>required