---
layout: api
title: "v2.2.4 JavaScript Library: L.mapbox.legendControl(options)"
categories: api
version: v2.2.4
permalink: /api/v2.2.4/l-mapbox-legendcontrol/
---
<h2 id="section-l-mapbox-legendcontrol">L.mapbox.legendControl(options)</h2>
<p><span class='leaflet icon'><em>Extends</em>: L.Control</span></p>
<p>A map control that shows legends added to maps in Mapbox. Legends are auto-detected from active layers.</p>
<table>
<thead>
<tr>
<th>Options</th>
<th>Value</th>
<th>Description</th>
</tr>
</thead>