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

BugFix: BasemapGallery loading demo data in production release #579

Conversation

prathameshnarkhede
Copy link
Contributor

Related Issue #566

Description

This pull request includes several updates to the BasemapGallery and BasemapGalleryItem classes. Here are the key changes:

  1. Update to BasemapGallery.Appearance.cs: The visibility of the PART_LoadingScrim Grid has been set to False. This change will hide the loading scrim by default, providing a cleaner user interface while the basemaps are loading.
  2. Refactoring of LoadBasemaps method: The LoadBasemaps method previously present in both BasemapGallery.cs and BasemapGallery.Windows.cs has been removed. Its functionality has been integrated into the BasemapGallery_Loaded method. This change streamlines the loading process and reduces code duplication.
  3. Enhancement to BasemapGalleryItem.cs: The Equals method in this class has been updated. In addition to the existing checks, it now also verifies the equality of the BaseLayers count and checks for the existence of all layers in Basemap in the other object. This enhancement ensures a more thorough comparison of BasemapGalleryItem instances.

These updates aim to improve the efficiency of the basemap loading process and the accuracy of basemap item comparisons. Please review the changes and let me know if you have any questions or feedback.

- In `BasemapGallery.Appearance.cs`, the visibility of `PART_LoadingScrim` Grid has been set to `False`.
- The `LoadBasemaps` method in `BasemapGallery.cs` and `BasemapGallery.Windows.cs` has been removed and its functionality has been moved to the `BasemapGallery_Loaded` method.
- In `BasemapGalleryItem.cs`, the `Equals` method has been updated to check for equality of `BaseLayers` count and existence of all layers in `Basemap` in the `other` object, in addition to the existing checks.
@prathameshnarkhede prathameshnarkhede linked an issue Jun 13, 2024 that may be closed by this pull request
@prathameshnarkhede prathameshnarkhede requested review from mstefarov and dotMorten and removed request for mstefarov and dotMorten June 13, 2024 23:02
Copy link
Member

@dotMorten dotMorten left a comment

Choose a reason for hiding this comment

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

Really close! Just need those missing layer types.

mstefarov

This comment was marked as off-topic.

@prathameshnarkhede prathameshnarkhede merged commit d7dd108 into main Jun 18, 2024
1 check passed
@prathameshnarkhede prathameshnarkhede deleted the pratham/566-basemapgallery-loading-demo-data-in-production-release branch June 18, 2024 23:58
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.

BasemapGallery loading demo data in production release
3 participants