Just messing around with your code, I tried removing the divs from line 191-195 and the advanced map opened full size in the new window. Not sure if those divs will be necessary in your map later on, but hopefully it at least gives you an idea of where to start!
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.