---
layout: api
title: "v3.0.1 JavaScript Library: L.Control.Layers"
categories: api
version: v3.0.1
permalink: /api/v3.0.1/l-control-layers/
---
<h2 id="control-layers">Control.Layers</h2>

<p>The layers control gives users the ability to switch between different base layers and switch overlays on/off (check out the <a href="http://leafletjs.com/examples/layers-control.html">detailed example</a>). Extends <a href="/mapbox.js/api/v3.0.1/l-control">Control</a>.</p>

<pre><code>var baseLayers = {
	"Mapbo