Leaflet.awesome-markers
Leaflet.awesome-markers copied to clipboard
extraClasses doesn't work
I tried:
pointToLayer: function (feature, latlng) {
return L.marker(latlng, {
icon: L.AwesomeMarkers.icon({
icon: 'tint',
markerColor: 'blue',
prefix: 'fa',
extraClasses: 'someClass'
})
});
}
But don't work, in source code, just show:
`<div class="awesome-marker-icon-blue awesome-marker leaflet-zoom-animated leaflet-interactive" tabindex="0" style="margin-left: -17px; margin-top: -42px; width: 35px; height: 45px; transform: translate3d(905px, 529px, 0px); z-index: 529;">
<i class="fa fa-tint icon-white"></i>
</div>`
Why it dont work?
I had the same problem. I then switched from the leaflet.awesome-markers.min.js file to the leaflet.awesome-markers.js file because I wanted to solve the problem. But in the file leaflet.awesome-markers.js everything worked fine. So I think that only the min-version has this bug. I hope that helps others too.