Hello,
Context :
I have a nodejs server to serve tiles with .mbtiles file and I use
MarkerClusterGroup on my client to display markers with a .geojson file
which represent a state of communication. Markers are .png red or blue
according to their state of communication. I try to have an interactive
map which display markers and show if the communication is OK (blue.png)
or if the communication is down (red.png).
I can get all markers and test it to change or not the marker with `setIcon` function in red or blue depending of their state.
I try to change only one cluster (only change the color) if one or more "childMarker" is in red. And change again in green if all child markers are in correct state.
Like this example, one cluster with 2 markers in correct state and another cluster with some markers with an incorrect state :
Zoom in :
Zoom in :
Zoom in :
This is exactly what I try to do. If anyone has ideas that may help me.
Thanks !