In my Azure Map (JS), I have the following code that displays various pins on the map. As the datasource changes, I clear the last set of Sources and add a new array of Sources.
datasource.clear();
datasource.add(sourceData);
After the .add call, there is a time delay before all the new pins are displayed. How can I detect when this operation is complete? Is there an event that exposes this?