---
layout: api
title: "v2.1.2 JavaScript Library: L.mapbox.marker.style(feature, latlng)"
categories: api
version: v2.1.2
permalink: /api/v2.1.2/l-mapbox-marker-style/
---
<h2 id="section-l-mapbox-marker-style">L.mapbox.marker.style(feature, latlng)</h2>
<p>An icon generator for use in conjunction with <code>pointToLayer</code> to generate
markers from the <a href="http://mapbox.com/developers/api/#markers">Mapbox Markers API</a>
and support the <a href="https://github.com/mapbox/simplestyle-spec">simplest