2

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?

wexman
  • 1,217
  • 10
  • 19

1 Answers1

2

Yes, Thingsboard allows you to use builtin options for this.

You can see

viktorkho
  • 618
  • 6
  • 19
  • 1
    Seems like this is a new feature that wasn't available at the time of asking, marking as answer although I'm not using Thingsboard anymore... – wexman May 16 '22 at 07:36
  • The video shows how to color the markers, just as OP describes they can already do. But the video does not show how to color based on alarm state (which is what OP asked for). – Mikael Falkvidd May 17 '22 at 08:19