var resizeTimer; map.on("load", function(theMap) { aspect.after(registry.byId("map"), "resize", function() { clearTimeout(resizeTimer); resizeTimer = setTimeout(function() { map.reposition(); map.resize(); }, 500); }); });
#divMap{ height: 100%; width: 100%; }
<div id="divMap" style="height:100%; width:100%;"></div>
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.