I am using two plugins with my leaflet map: Leaflet.awesome-markers and Leaflet.EasyButton.
I am using local font made with Fontastic for icons of Leaflet.EasyButton by including the css file and using the css class:
<link rel="stylesheet" href="/src/localIcons.css">
<script>
L.easyButton('<div class="icon1"></div>', function(btn, map){
map.setView([-21.12, 55.5], 10);
},'Réunion').addTo(mymap);
</script>
and I want to use font from fontawesome for Leaflet.awesome-markers icons but I can't figure out how to use the two at the same time, the icons of marker doesn't show unless I delete the local css include above.
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.2.0/css/all.css" integrity="sha384-hWVjflwFxL6sNzntih27bfxkr27PmbbK/iSvJ+a4+0owXq79v+lsFkW54bOGbiDQ" crossorigin="anonymous">
<script>
var colorMarker = L.AwesomeMarkers.icon({
markerColor: black,
prefix: 'fa',
extraClasses: 'fas',
icon: 'times-circle'
});
</script>
It looks like the marker plugin is searching the icon in my local font css instead of using fontawesome.
Here is a screenshot to show you the problem:
