-
Notifications
You must be signed in to change notification settings - Fork 156
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
Resolve issue where selected view annotation is not moved to correct z-order #1607
Resolve issue where selected view annotation is not moved to correct z-order #1607
Conversation
Tests/MapboxMapsTests/Annotations/ViewAnnotationManagerTests.swift
Outdated
Show resolved
Hide resolved
try? manager.update(annotationViewA, options: ViewAnnotationOptions(selected: true)) | ||
XCTAssertEqual(mapboxMap.addViewAnnotationStub.invocations.first?.parameters.id, "test-id") | ||
|
||
// After adding a new annotation, the item clostst to the map is now furthest from the 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.
// After adding a new annotation, the item clostst to the map is now furthest from the map | |
// After adding a new annotation, the item closest to the map is now furthest from the map |
And here
The tests seem right, but the comments don't seem to align. Could you add context about what each step is looking for
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.
correct me if I'm wrong but the order of the views is decided in DelegatingViewAnnotationPositionsUpdateListenerDelegate
, upon receiving changes in view annotations (adding/removing/updating), mapboxMap
will notify its delegate about new placement of annotation views. I think the test should setup similar to this test below
mapbox-maps-ios/Tests/MapboxMapsTests/Annotations/ViewAnnotationManagerTests.swift
Line 276 in 6ac39ec
func testPlacementPosition() { |
Tests/MapboxMapsTests/Annotations/ViewAnnotationManagerTests.swift
Outdated
Show resolved
Hide resolved
…wift Co-authored-by: Patrick Leonard <pjleonard37@users.noreply.github.com>
Tests/MapboxMapsTests/Annotations/ViewAnnotationManagerTests.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.
Please check if 2 added files in Debug App and Example Apps are intended
…z-order (#1607) * fix issue where selected view annotation is not moved to correct z-order
…z-order (#1607) * fix issue where selected view annotation is not moved to correct z-order
* Update GL-Native and Common versions * Update Maps version to 10.9.0-rc.1 * fix zh localization (#1602) * Write static config only if directory exists (#1608) * Write static config only if directory exists * Fix MapboxMaps -> MapboxMaps-static * Enable ASan, JUnit collection, fix e2e, store crashes (#1622) * Store crashes during unit tests * Use JUnit for unit tests * Fix e2e script on pushes without linked PR * Enable Address Sanitizer for tests * Resolve issue where selected view annotation is not moved to correct z-order (#1607) * fix issue where selected view annotation is not moved to correct z-order * Resolve initial view annotation placement issue (#1604) * resolving initial annotation view placement issue * Smooth reduced accuracy ring radius interpolation (#1625) Co-authored-by: Ankur Khandelwal <ankur.khandelwal@mapbox.com> Co-authored-by: Mai Mai <mai.mai@mapbox.com> Co-authored-by: ZiZi <44972592+ZiZasaurus@users.noreply.github.com> Co-authored-by: Roman Laitarenko <roman.laitarenko@mapbox.com>
* Make internal map to conform to UIViewControllerRepresentable * Wrap SwiftUI view annotation to UIKit. * Support dynamic sizing for view annotations
* Make internal map to conform to UIViewControllerRepresentable * Wrap SwiftUI view annotation to UIKit. * Support dynamic sizing for view annotations
Fixes #1599
Pull request checklist:
custom_categories
(scripts/doc-generation/.jazzy.yaml)## main
heading near the top).v10.[version]
release branch fix / enhancement, merge it tomain
first and then port tov10.[version]
release branch.PRs must be submitted under the terms of our Contributor License Agreement CLA.