Closed kaminderpal closed 3 months ago
packages/geoview-core/src/core/components/layers/left-panel/left-panel.tsx
line 41 at r1 (raw file):
useEffect(() => { if (displayState !== 'add' && !legendLayers.length && mapConfig?.footerBar?.tabs.core.includes('legend')) {
Not sure why we need this change in this file. Whether legend is added or not it should not affect layers tab or this functionality. Is there a reason for this?
Description
1) Fix default footer tab id when no legend is present in config file. 2) Selection of
View
as default layers toolbar when no legend exist.Fixes #2299 Fixes #2301
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Add the URL for your deploy! https://kaminderpal.github.io/geoview/sandbox.html
Checklist:
I have made corresponding changes to the documentationI have added tests that prove my fix is effective or that my feature worksNew and existing unit tests pass locally with my changesThis change is