storymap-shortlist
storymap-shortlist copied to clipboard
Not All Tabs Appear on Page Load
I have 2 deployments of version 1.4.4. I have noticed a random bug where on page load, not all of the tabs will load. For the tabs that did not load, the symbol used on the web map is used for the non-loaded tabs.
This issue occurs randomly. When it does occur, a page refresh will typically result in all tabs loading.
In testing this issue, @cooney found that one of the layers would occasionally come in a bit slowly and throw off the loading of the map. The following solution was suggested and utilized:
Change:
initMap(layers);
to:
setTimeout(function(){
initMap(layers);
}, 500);
Location in the main.js file can be found at https://github.com/Esri/shortlist-storytelling-template-js/blob/master/app/js/main.js#L579