I am currently struggling to implement custom cluster options in ngx-leaflet. My goal is simply to change all marker clusters to display the word "hello".
The demo available at https://github.com/Asymmetrik/ngx-leaflet-markercluster/tree/master/src/demo/app provides some insight, but does not offer a comprehensive solution. The documentation at https://github.com/Asymmetrik/ngx-leaflet-markercluster#leafletmarkerclusteroptions redirects me to Leaflet's own documentation.
Based on my research, it seems like I should be implementing something along these lines:
markercluster-demo.component.ts
markerClusterGroup: L.MarkerClusterGroup;
markerClusterData: L.Marker[] = [];
markerClusterOptions = L.markerClusterGroup({
iconCreateFunction(cluster) {
return L.divIcon({ html: '<b>hello</b>' });
}
});
Does anyone have a working example of this?
Thank you