Creating a form dynamically and calling submit on form as shown below:
const mapForm = document.createElement(\'form\'); mapForm.setAttribute(\'id\', \'export