---
layout: api
title: "v2.1.0 JavaScript Library: L.Marker"
categories: api
version: v2.1.0
permalink: /api/v2.1.0/l-marker/
---
<h2 id="marker">Marker</h2>

<p>Used to put markers on the map.</p>

<pre><code class="javascript">L.marker([50.5, 30.5]).addTo(map);</code></pre>

<h3>Creation</h3>

<table data-id='marker'>
	<tr>
<th class="width200">Factory</th>

<th>Description</th>
	</tr>
	<tr>
<td><code><b>L.marker</b>(
<nobr>&lt;<a href="/mapbox.js/api/v2.1.0/l-latlng">LatLng</a>&gt; <i>lat