How to keep data for non-html-thingy updated


I am using a map from Ammaps and the only way to change the dataset given to the map is to do map.dataProvider.areas = (myObjectArrayOfData); How could one make this reactive as the data continues to change? As I update the data colors of the countries will change. Here is Ammaps example of how to change the data if that helps (Uses on click event)

Could I just make a template and plug in some handlebars and be good to go? The code with the map is a script located in the html. (It’s short)


So you want to simply update the data in real time? Just create a collection with the data, and run an observeChanges