Legacy
Mapbox.js is no longer in active development. To learn more about our newer mapping tools see Mapbox GL JS.
You are viewing an older version of Mapbox.js. Check out v3.3.1 for the latest.
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
.