I have a map widget that is displaying a dynamic GIS layer based on a variable value and the variable is being updated as new data is coming into the payload.
My desired visualization would be that only the most recent GIS layer value will be displayed on the map. I can achieve this by adding a ‘Present Time Interval’ button to my map widget and setting it to the time interval at which my data is coming into the parser. However, this seems to require that I manually select the time filter button every time I want to refresh the map to display only the most current data. Otherwise, the GIS layers will just populate on top of each other.
Is there a way to automatically filter the displayed layer values either by adding code to my payload parser or configuring the settings in the map widget?
A possible option would be to run an analysis that updates the GIS when new data arrives.
Instead of keeping multiple GIS Layers in a variable and separating the visualization by time, you would keep only one GIS Layer in the displayed GIS variable and store the other ones in a not displayed GIS variable.
Every time new data arrives, you would verify, using your conditions from the parser, which GIS layer must be displayed and swap it with the GIS Layer currently being displayed.
Thanks for that suggestion, Feddy. That was one option I was considering, if I understand correctly.
Just to clarify, in the suggested method I would not be using a dynamic GIS layer in my map widget, but I would be updating my map widget (and associated layers) with a script every time data comes in from my device?
I am primarily a python user and I was trying to find functions within the TagoIO python sdk that were related to updating/modifying map widgets and dashboards. The closest thing I found was Resources.dashboards.edit() but I wasn’t sure if I was on the right track. Do such functions exist either within the python or JS sdks?