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

Offline: Open a preplanned map area #841

Merged
merged 15 commits into from
Aug 27, 2024

Conversation

des12437
Copy link
Contributor

Closes swift/5358

Adds support to open a downloaded preplanned map area with the "open" button which dismisses the view and returns a Map via the onMapSelectionChanged view modifier. If the preplanned map area's mobile map package fails to load when opened then the view's status is set to mmpkLoadFailure.

@des12437 des12437 self-assigned this Aug 20, 2024
@des12437 des12437 requested review from yo1995 and rolson August 20, 2024 17:11
@des12437 des12437 marked this pull request as ready for review August 20, 2024 17:11
@rolson rolson requested review from philium and removed request for rolson August 20, 2024 17:24
@des12437 des12437 requested a review from yo1995 August 21, 2024 19:19
@des12437 des12437 requested a review from philium August 21, 2024 22:19
Copy link
Contributor

@philium philium left a comment

Choose a reason for hiding this comment

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

Remember, when writing code, start by limiting the exposure as much as possible. If it can be private, keep it private. If not, see if it can be just file private. If not, see it if can be just internal, etc. It is easy to increase the exposure of something later on down the road. It is much harder to reduce the exposure of something.

@des12437 des12437 requested a review from philium August 22, 2024 21:30
@des12437 des12437 requested a review from philium August 22, 2024 22:54
@des12437 des12437 requested a review from philium August 22, 2024 23:24
Copy link
Contributor

@philium philium left a comment

Choose a reason for hiding this comment

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

Looks good. Thanks!

@des12437 des12437 requested a review from philium August 23, 2024 17:24
@des12437
Copy link
Contributor Author

This PR is ready for re-review.

@des12437 des12437 requested a review from yo1995 August 26, 2024 22:53
@des12437
Copy link
Contributor Author

@philium can you please re-review this PR when you have a chance? Thank you!

@des12437
Copy link
Contributor Author

Thank you both!

@des12437 des12437 merged commit 41a903d into OfflineMapAreasView Aug 27, 2024
@des12437 des12437 deleted the destiny/Open-a-preplanned-map-area branch August 27, 2024 18:48
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.

4 participants