x": mapbox,
	"OpenStreetMap": osm
};

var overlays = {
	"Marker": marker,
	"Roads": roadsLayer
};

L.control.layers(baseLayers, overlays).addTo(map);</code></pre>

<h3>Creation</h3>
<table data-id='control-layers'>
	<tr>
<th>Factory</th>

<th>Description</th>
	</tr>
	<tr>
<td><code><b>L.control.layers</b>(
<nobr>&lt;<a href="/mapbox.js/api/v3.1.0/l-control">Layer Config</a>&gt; <i>baseLayers?</i></nobr>,
<nobr>&lt;<a href="/mapbox.js/api/v3.1.0/l-control">Layer Config</a>&gt; <i>overlay