Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not All Tabs Appear on Page Load #58

Open
pmacMaps opened this issue Feb 9, 2016 · 1 comment
Open

Not All Tabs Appear on Page Load #58

pmacMaps opened this issue Feb 9, 2016 · 1 comment

Comments

@pmacMaps
Copy link

pmacMaps commented Feb 9, 2016

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant