Is there a way to make storyboard.getAdressTimeLine run synchronously? I need storyboard.drawTimeLine to continue executing only after storyboard.getAdressTimeLine is done
for (var i = 0; i < response.data.length; i++) {
var obj=response.data[i];
var date = obj.fixtime.substring(0, 11);
storyboard.getAdressTimeLine(obj.latitude,obj.longitude);
storyboard.drawTimeLine(date + "00:00:00.000+0000", obj.fixtime, "red",0,storyboard.lastAdressTime);
items.push(item);
}