a subplugin for the Leaflet.MarkerCluster to display clustered child elements in the list
subplugin for the Leaflet.MarkerCluster to display clustered child elements in the list
labelFn (fn (element, element index, cluster) ) - function to handle how to display each element in the list
(el, ei, cluster) => {
return '<p onclick="clickAction(' + el.options.id + ')">[' + ei + '] ' + el.options.listText + '</p>';
}
headerFn (fn (elements, cluster) ) - function to handle header
(els, cluster) => '<p>showing cluster with ' + els.length + ' elements</p>'
sortFn (fn (marker1, marker2) ) - implementation of markers sorting in list (see e.g. mozilla docs )
(m1, m2) => m1.options.id > m2.options.id ? 1 : -1
showHeader (bool, default false) - whether to display header