I have a custom pin but it is showing as an ugly default grey pin. Here is my function where I am setting my pin. This is inside of a loop that gets my pins
featureCollection.features.push({
"type": "Feature",
"properties": {
"id": item.id,
"title": item.title,
"image":item.image,
"description": item.description,
"icon": {
"iconUrl": "../images/pin.png",
"iconSize": [29, 36],
"iconAnchor": [25, 25],
"popupAnchor": [0, -15],
"className": "pin"
}
},
"geometry": {
"type": "Point",
"coordinates": [
item.long,
item.lat
]
}
});
The example icon code was used from here https://www.mapbox.com/mapbox.js/example/v1.0.0/custom-marker/