Problem with adding icon to layer control.
CSS:
.fa-b:before {
font-family: Courier;
font-weight: bold;
content: 'B';
}
JS:
var geojsonLayer = new L.GeoJSON.AJAX("https", {
pointToLayer: function(feature,yx){
var marker = new L.marker(yx, {
icon: L.AwesomeMarkers.icon({
icon: 'fa-b',
markerColor: 'cadetblue',
prefix: 'fa'})});
return marker;}
});
var clusterGroup = new L.markerClusterGroup();
geojsonLayer.on('data:loaded', function() {
clusterGroup.addLayer(geojsonLayer);
map.addLayer(clusterGroup);
})
var groupedOverlays = {
"Group": {
'<icon class = fa-b > B': clusterGroup
}}