I want to use two leaflet plugins: ExtraMarkers and IconLabel. How to combine them together? The result should be ExtraMarker with label.
When I create ExtraMarkers:
var icon = L.ExtraMarkers.icon({
shadowSize: [0,0],
prefix: 'fa',
extraClasses: 'fa-fw',
shape: 'circle',
icon: 'fa-'+Icon,
iconColor: IconColor,
markerColor: MarkerColor
});
or IconLabel
var iconLabel = L.Icon.Label.extend({
options: {
iconUrl: 'img/icon.png',
shadowUrl: null,
iconSize: new L.Point(24, 24),
iconAnchor: new L.Point(0, 1),
labelAnchor: new L.Point(26, 0),
wrapperAnchor: new L.Point(12, 13),
labelClassName: 'icon-label'
}
});
var icon = new iconLabel({labelText: title})