storymap-shortlist icon indicating copy to clipboard operation
storymap-shortlist copied to clipboard

Not All Tabs Appear on Page Load

Open pmacMaps opened this issue 9 years ago • 1 comments

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.

pmacMaps avatar Feb 09 '16 20:02 pmacMaps

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

pmacMaps avatar Jun 10 '16 20:06 pmacMaps