Skip to content

[Bookmarks] Rename init parameter, update example usage #284

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

Merged
merged 3 commits into from
Mar 31, 2023

Conversation

dfeinzimer
Copy link
Collaborator

Related #260

@dfeinzimer dfeinzimer self-assigned this Mar 30, 2023
Comment on lines -61 to -64
// Bookmarks(
// isPresented: $showingBookmarks,
// mapOrScene: map
// )
Copy link
Collaborator Author

@dfeinzimer dfeinzimer Mar 30, 2023

Choose a reason for hiding this comment

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

This would've caused a build error if it were to be uncommented by a user since map was moved under dataModel.

Comment on lines +56 to +60
.onSelectionChanged { bookmark in
if let viewpoint = bookmark.viewpoint {
Task { await mapViewProxy.setViewpoint(viewpoint, duration: 1) }
}
}
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Since we support viewpoint animation now, we can uncomment this and make good use of it.

@dfeinzimer dfeinzimer changed the title [Bookmarks] Update example usage [Bookmarks] Rename init parameter, update example usage Mar 30, 2023
/// - mapOrScene: A `GeoModel` authored with pre-existing bookmarks.
/// - geoModel: A `GeoModel` authored with pre-existing bookmarks.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Basemap gallery uses this name for a parameter of the same type.

@dfeinzimer dfeinzimer marked this pull request as ready for review March 30, 2023 23:06
@dfeinzimer dfeinzimer requested a review from mhdostal March 30, 2023 23:06
@dfeinzimer dfeinzimer merged commit a26cafb into v.next Mar 31, 2023
@dfeinzimer dfeinzimer deleted the df/updateBookmarksExample branch March 31, 2023 16:09
@dfeinzimer dfeinzimer mentioned this pull request Apr 3, 2023
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.

2 participants