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

fix(layer order): adds placeholder for geocore layers to preserve ord… #2568

Conversation

DamonU2
Copy link
Member

@DamonU2 DamonU2 commented Oct 25, 2024

…er added

Closes #2491

Description

Adds a place holder when calling addGeoviewLayerByGeoCoreUUID, so that the order added is preserved when adding multiple geocore layers quickly.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

https://damonu2.github.io/geoview/add-layers.html

Run the following in the console at once: cgpv.api.maps.mapWM.layer.addGeoviewLayerByGeoCoreUUID('b6b6d5a6-bded-4b6e-9e8a-17f6e1b538dc');cgpv.api.maps.mapWM.layer.addGeoviewLayerByGeoCoreUUID('6c343726-1e92-451a-876a-76e17d398a1c');cgpv.api.maps.mapWM.layer.addGeoviewLayerByGeoCoreUUID('1dcd28aa-99da-4f62-b157-15631379b170');cgpv.api.maps.mapWM.layer.addGeoviewLayerByGeoCoreUUID('3e9cc0c9-7e59-478b-befb-a584674baa75');

Order should be: heat wave, field notes, protected, water quality (reverse of added order)

Checklist:

  • I have build (rush build) and deploy (rush host) my PR
  • I have connected the issues(s) to this PR
  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes generate no new warnings
  • I have created new issue(s) related to the outcome of this PR is needed
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

This change is Reviewable

@DamonU2 DamonU2 force-pushed the 2491-layer-loading-error branch from 19f33af to 5ac8dc2 Compare October 31, 2024 15:33
Copy link
Member

@Alex-NRCan Alex-NRCan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @jolevesq)

Copy link
Member

@jolevesq jolevesq left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 2 of 2 files at r1, all commit messages.
Reviewable status: :shipit: complete! all files reviewed, all discussions resolved (waiting on @DamonU2)

@jolevesq jolevesq merged commit 6ec7769 into Canadian-Geospatial-Platform:develop Oct 31, 2024
6 checks passed
@DamonU2 DamonU2 deleted the 2491-layer-loading-error branch October 31, 2024 19:39
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

Successfully merging this pull request may close these issues.

[BUG] Layer loading order
3 participants