Show device markers based search user Thingsboard?
I’m using Thingsboard version 3.4.1, I want to display markers on the maps Thingsboard widget based on user search Input. So when the user searches for the item device that appears on the maps, only the device that matches the user’s search.
How do I display the map icon that the user is looking for?
Thanks in advance.
Solution – 1
- Create widget with HTML
- Every time when user types, you need to create/update
USERattribute (example) to save search text in it.
- Create dashboard filter that will compare device name or label with search text (use
not containscomparison functions).
- Add filter from step 3 to map widget.