-
Notifications
You must be signed in to change notification settings - Fork 38
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(ui-core): Fix fullscreen zoom exit, layer class label, disable zo… #2759
fix(ui-core): Fix fullscreen zoom exit, layer class label, disable zo… #2759
Conversation
…om details, add layer id, inline plugin Closes Canadian-Geospatial-Platform#2757, Canadian-Geospatial-Platform#2656
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 17 of 18 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (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.
Reviewed 16 of 18 files at r1, 2 of 2 files at r2, all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on @DamonU2)
packages/geoview-core/src/core/components/layers/left-panel/single-layer.tsx
line 82 at r2 (raw file):
// const layerChildren: TypeLegendLayer[] | undefined = useSelectorLayerChildren(layer.layerPath); // const layerItems: TypeLegendItem[] | undefined = useSelectorLayerItems(layer.layerPath); const layerItems: TypeLegendItem[] = useSelectorLayerItems(layer.layerPath);
Uncomment the line above instead of adding the line and keep the | undefined
to remain type safe throughout.
packages/geoview-core/src/geo/map/map-viewer.ts
line 913 at r2 (raw file):
// Listen to our internal mapChangeSize event this.map.on('change:size', handleSizeChangeOnce);
To handle events happening only once, you should be able to use this.map.once('change:size', ...)
or is it not available on map
?
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 4 of 5 files at r3.
Reviewable status: 18 of 19 files reviewed, 2 unresolved discussions (waiting on @Alex-NRCan and @DamonU2)
packages/geoview-core/src/core/components/layers/left-panel/single-layer.tsx
line 82 at r2 (raw file):
Previously, Alex-NRCan (Alex) wrote…
Uncomment the line above instead of adding the line and keep the
| undefined
to remain type safe throughout.
Done.
packages/geoview-core/src/geo/map/map-viewer.ts
line 913 at r2 (raw file):
Previously, Alex-NRCan (Alex) wrote…
To handle events happening only once, you should be able to use
this.map.once('change:size', ...)
or is it not available onmap
?
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 4 of 5 files at r3, 1 of 1 files at r4, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @DamonU2)
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 5 files at r3, 1 of 1 files at r4, all commit messages.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on @DamonU2)
7f5adf3
into
Canadian-Geospatial-Platform:develop
…om details, add layer id, inline plugin
Closes #2757, #2656
Description
Please include a summary of the change and which issue is fixed. Please also include relevant motivation and context. List any dependencies that are required for this change.
Fixes #2757, #2656
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.
Test add layer - fullscreen - disable button
https://jolevesq.github.io/geoview/add-layers.html
Test class
https://jolevesq.github.io/geoview/demos-navigator.html?config=./configs/navigator/16-esri-dynamic.json
Test plugins
https://jolevesq.github.io/geoview/demos-navigator.html?config=./configs/navigator/11-package-time-slider-custom.json
https://jolevesq.github.io/geoview/demos-navigator.html?config=./configs/navigator/12-a-package-swiper.json
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