-
Notifications
You must be signed in to change notification settings - Fork 10
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
Offline: Open a preplanned map area #841
Conversation
Sources/ArcGISToolkit/Components/Offline/OfflineMapAreasView.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/Offline/PreplannedListItemView.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/Offline/PreplannedListItemView.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/Offline/PreplannedListItemView.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/Offline/PreplannedListItemView.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/Offline/PreplannedMapModel.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/Offline/OfflineMapAreasView.swift
Outdated
Show resolved
Hide resolved
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.
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.
Sources/ArcGISToolkit/Components/Offline/OfflineMapAreasView.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/Offline/OfflineMapAreasView.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/Offline/OfflineMapAreasView.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/Offline/OfflineMapAreasView.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/Offline/PreplannedListItemView.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/Offline/PreplannedMapModel.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/Offline/OfflineMapAreasView.swift
Outdated
Show resolved
Hide resolved
OfflineMapAreasExample/OfflineMapAreasExample/OfflineMapAreasExampleView.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/Offline/OfflineMapAreasView.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/Offline/PreplannedListItemView.swift
Outdated
Show resolved
Hide resolved
Sources/ArcGISToolkit/Components/Offline/PreplannedListItemView.swift
Outdated
Show resolved
Hide resolved
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.
Looks good. Thanks!
Sources/ArcGISToolkit/Components/Offline/PreplannedListItemView.swift
Outdated
Show resolved
Hide resolved
This PR is ready for re-review. |
@philium can you please re-review this PR when you have a chance? Thank you! |
Thank you both! |
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 theonMapSelectionChanged
view modifier. If the preplanned map area's mobile map package fails to load when opened then the view's status is set tommpkLoadFailure
.