I recently started using FontAwesome 5's beautiful SVG icons. However I was unable to get them to work on my Leaflet.js markers using https://github.com/lvoogdt/Leaflet.awesome-markers
After a little poking around in the inspection window, I came up with this:
- You need to give the
extraClasses
value in your marker definition (fas
orfab
or whatever, it's on the FontAwesome page for each icon) - The default layout is not great, but a little CSS fixes it right up. You'll want to constrain it to only these icons though, using some SASS nesting, or it will screw up all the other FA icons on your page
I hope somebody finds this useful
Thank you this was really helpful, and its not stated in the documentation.