maps-plus icon indicating copy to clipboard operation
maps-plus copied to clipboard

Bug Fix: Cluster color not correctly reflecting Device Down Status (Fix attached)

Open rb2178 opened this issue 5 months ago • 0 comments

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

visualization_NEW.js

rb2178 avatar Jun 05 '26 22:06 rb2178