I'm using the map widget to show markers for assets and want to color the markers by the presence of alarms for the associated devices, i. e. if there's no (active) alarm for any of the devices associated with the asset, change the color of the marker to green. If there is, change it to red.
I know I can use a javascript function to color the markers, but I don't know how to get the alarm state. Can anyone help?
Yes, Thingsboard allows you to use builtin options for this.
You can see