As it currently stands, when you toggle the visibility of a layer, the map re-requests / reloads all visible layers. This can slow down the app's interactivity, especially when dynamically generated layers are visible since they take longer to load.
On a related note, it appears that layers are loaded serially rather than in parallel. This is also particularly noticeable when dynamically generated layers are involved since they can block the loading of the much faster GIBS-based layers.
This PR prevents layer creation errors and tile load errors from blocking map updates.
Description
This PR prevents layer creation errors and tile load errors from blocking map updates.
How To Test
git checkout WV-2974-optimize-map-rendering
npm run watch
PR Submission Checklist
This is simply a reminder of what we are going to look for before merging your code.
Merging
Please use the
squash and merge
commit method unless each commit in your branch is vital to the commit history of main.@nasa-gibs/worldview