Bug Fix: Cluster color not correctly reflecting Device Down Status (Fix attached)
The Issue When a device is in a "down" state, its individual map marker correctly displays as red. However, when the map is zoomed out and markers are grouped into clusters, the cluster icon shows as green regardless of whether any devices within it are down. This means a "down" device can be hidden inside what appears to be a healthy cluster, with no visual indication of the problem.
The Fix The attached visualization.js resolves this. The cluster icon logic has been updated to check whether any of its child markers are flagged as "down" and if so, the cluster itself renders in red, allowing you to follow the red colouring down through the cluster levels to identify the affected device(s).
To deploy:
Navigate to: /opt/splunk/etc/apps/leaflet_maps_app/appserver/static/visualizations/maps-plus
Back up the existing file: mv visualization.js visualization.js.bkk
Place the new visualization.js file in the same directory Restart Splunk
Once applied, clusters containing one or more down devices will display in red, consistent with the individual marker behaviour.
@Admins please merge this into the main codebase.
Enjoy
Richard B