r out such points.</p>

<h3>Creation</h3>

<table data-id='polygon'>
	<tr>
<th>Factory</th>

<th>Description</th>
	</tr>
	<tr>
<td><code><b>L.polygon</b>(
<nobr>&lt;<a href="/mapbox.js/api/v2.1.8/l-latlng">LatLng</a>[]&gt; <i>latlngs</i></nobr>,
<nobr>&lt;<a href="/mapbox.js/api/v2.1.8/l-polyline">Polyline options</a>&gt; <i>options?</i> )</nobr>
</code></td>


<td>Instantiates a polygon object given an array of geographical points and optionally an options object (the same as for Polyline)