--- layout: api title: "v1.6.3 API: L.mapbox.marker.icon(properties)" categories: api version: v1.6.3 permalink: /api/v1.6.3/l-mapbox-marker-icon --- {% raw %}

L.mapbox.marker.icon(properties)

A core icon generator used in L.mapbox.marker.style

Options Value Description
feature object A GeoJSON feature object

Returns:

A L.Icon object with custom settings for iconUrl, iconSize, iconAnchor, and popupAnchor.

A working example of L.mapbox.marker.icon in use

{% endraw %}