Leaflet / Leaflet.Icon.Glyph

Add glyphs from icon fonts to your LeafletJS markers
130 stars 45 forks source link

Add support for Font Awesome 5 #9

Closed krisalyssa closed 5 years ago

krisalyssa commented 5 years ago

Font Awesome 5 adds four new prefixes:

The actual prefix on the icon name is still fa-. So, for example, the Github icon (a brand) is ”fab fa-github”.

For backward compatibility, the fa prefix is still supported, and acts as an alias for fas, which means only the solid style icons are available.

Fixes #8.

IvanSanchez commented 5 years ago

I don't 100% like this (feels a bit hackish), but it's better than other solutions (e.g. overcomplicating the setup for FA5 with two kinds of prefixes)