-
Notifications
You must be signed in to change notification settings - Fork 11
[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
Conversation
// Bookmarks( | ||
// isPresented: $showingBookmarks, | ||
// mapOrScene: map | ||
// ) |
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.
This would've caused a build error if it were to be uncommented by a user since map
was moved under dataModel
.
.onSelectionChanged { bookmark in | ||
if let viewpoint = bookmark.viewpoint { | ||
Task { await mapViewProxy.setViewpoint(viewpoint, duration: 1) } | ||
} | ||
} |
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.
Since we support viewpoint animation now, we can uncomment this and make good use of it.
/// - mapOrScene: A `GeoModel` authored with pre-existing bookmarks. | ||
/// - geoModel: A `GeoModel` authored with pre-existing bookmarks. |
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.
Basemap gallery uses this name for a parameter of the same type.
Related #260