separated kml export data generation into a function of its own
async kml export support