---
layout: api
title: "v2.2.0 JavaScript Library: L.mapbox.infoControl(options)"
categories: api
version: v2.2.0
permalink: /api/v2.2.0/l-mapbox-infocontrol/
---
<h2 id="section-l-mapbox-infocontrol">L.mapbox.infoControl(options)</h2>
<p><span class='leaflet icon'><em>Extends</em>: <code><a href="/mapbox.js/api/v2.2.0/l-control">L.Control</a></code></span></p>
<p>A map control that shows a toggleable info container. If set, attribution is auto-detected from active layers and added to the info container.</p