-
Notifications
You must be signed in to change notification settings - Fork 35
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
fix(layers): fix default footertabid closes2299 #2309
fix(layers): fix default footertabid closes2299 #2309
Conversation
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? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 6 files at r1.
Reviewable status: 2 of 6 files reviewed, 2 unresolved discussions (waiting on @cphelefu and @kaminderpal)
packages/geoview-core/src/core/components/layers/left-panel/add-new-layer/add-new-layer.tsx
line 136 at r1 (raw file):
const { getRootProps, getInputProps, isDragActive } = useDropzone({ onDrop }); const dropAreaSx = {
Where is this style now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 2 of 6 files reviewed, 2 unresolved discussions (waiting on @cphelefu and @jolevesq)
packages/geoview-core/src/core/components/layers/left-panel/left-panel.tsx
line 41 at r1 (raw file):
Previously, cphelefu (Christopher Phelefu) wrote…
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?
We have 2 cases now
- when no layers are present on the map, then legendLayers will be empty.
- when there are layers on the map, but legend doesnt exist in mapConfig file like below
Code snippet:
'footerBar': {
'tabs': {
'core': ['layers', 'details', 'data-table']
}
},
packages/geoview-core/src/core/components/layers/left-panel/add-new-layer/add-new-layer.tsx
line 136 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
Where is this style now?
it was commented code, so i have remove it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 2 of 6 files at r1, 1 of 1 files at r2, all commit messages.
Reviewable status: 5 of 6 files reviewed, 1 unresolved discussion (waiting on @cphelefu)
packages/geoview-core/src/core/components/layers/left-panel/left-panel.tsx
line 41 at r1 (raw file):
Previously, kaminderpal (Kamy) wrote…
We have 2 cases now
- when no layers are present on the map, then legendLayers will be empty.
- when there are layers on the map, but legend doesnt exist in mapConfig file like below
CAn you add a comment to explain this if
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 5 of 6 files reviewed, 1 unresolved discussion (waiting on @jolevesq)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: 5 of 6 files reviewed, 1 unresolved discussion (waiting on @cphelefu and @jolevesq)
packages/geoview-core/src/core/components/layers/left-panel/left-panel.tsx
line 41 at r1 (raw file):
Previously, jolevesq (Johann Levesque) wrote…
CAn you add a comment to explain this if
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed all commit messages.
Reviewable status: 5 of 6 files reviewed, 1 unresolved discussion (waiting on @cphelefu)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewed 1 of 1 files at r3.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on @cphelefu)
85e7df4
into
Canadian-Geospatial-Platform:develop
Description
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