status(percentLoaded+'% of '+fileSize+' loaded...');
};
reader.onload=function (e){
varlatlngs;
status('Generating map...');
latlngs=getLocationDataFromKml(e.target.result);
heat._latlngs=latlngs;
heat.redraw();
stageThree(latlngs.length);
}
reader.onerror=function (){
status('Something went wrong reading your JSON file. Ensure you\'re uploading a "direct-from-Google" JSON file and try again, or create an issue on GitHub if the problem persists. (error: '+reader.error+')');