finish map uploading logic