mapbox.js/api/v2.2.4/l-path">vector layers</a> and <a href="/mapbox.js/api/v2.2.4/l-layergroup">layer groups</a>.</p>

<h3>Methods</h3>

<table data-id='ilayer'>
	<tr>
<th>Method</th>
<th>Returns</th>
<th>Description</th>
	</tr>
	<tr>
<td><code><b>onAdd</b>(
<nobr>&lt;<a href="/mapbox.js/api/v2.2.4/l-map-class">Map</a>&gt; <i>map</i> )</nobr>
</code></td>

<td>-</td>
<td>Should contain code that creates DOM elements for the overlay, adds them to <a href="/mapbox.js/api/v2.2.4/l-map-class">ma