-
Notifications
You must be signed in to change notification settings - Fork 1.3k
allow for annotation selection z-order change #991
Comments
Not critical for Beta 1. |
I think it is — try using Maps.app a bit with 8-10 annotations in overlapping proximity. As you tap the clump, each is selected in rotating order, coming to the front. So there are two things going on here:
Not having this alters the usability of annotations significantly. |
Here's an example of what this looks like in our SDK: (from https://www.mapbox.com/guides/station-finder-part-2/) This doesn't show the inability to select this annotation because it's obscured, but that would be the case for any near the center of the map. |
👍 per offline discussion. |
Is it possible to share what is the approximate date when all checkins for iOS beta1 will be in master repo? |
We are shooting for very soon, likely early next week. |
@kkaefer is starting to investigate more robust annotations in b3 and beyond. |
@incanus Any updates on when this might be implemented? |
Hi @cupofjoakim please note that work on UIView based annotations is happening in #4801 and is expected to land in the next release. z-order of UIViews can be done with Cocoa APIs. However, for use cases requiring many thousands of annotations displayed concurrently, we are still planning to keep the existing GL annotations API. Z ordering for GL annotations requires a runtime styling API and that is tracked in #837 |
With #5264, we send an annotation view to the front when it is selected. #5264 doesn’t address non-view-backed annotations (GL point annotations); that functionality would depend on #837. If you need to adjust the z-order of a specific annotation view beyond the functionality implemented in #5264, such as sending an annotation view to the back when the user deselects it, #5287 unblocks a simple approach to doing so using standard UIKit APIs; see #5287 (comment) for details. |
Hi @1ec5, I still having the problem with z-index of Annotation below. Do you know what is final solution to fix it? Updated the latest Mapbox v3.2.3 from Fabric seem no helped. Thanks. |
@kythanh, the fix for this issue was added in #5264, which is in v3.3.0-beta.2. It’ll be available via Fabric once we release v3.3.0 in a week or so. Note that the change only applies to annotation views, which are new to v3.3.0, so you’ll have to replace your usage of MGLAnnotationImage with MGLAnnotationView to take advantage of the z-ordering fix. |
Is annotation z-order api supported now? |
Piggybacking off of #988, when you mark an annotation as selected, it should come to the front of the z-order. This is how MapKit behaves. For state tracking, we can do that per-platform (such as determining whether single or multiple selection is allowed), but we need to be able to change individual ordering on demand for the visual component.
Need to see how difficult this might be in the shaders in #988 first.
The text was updated successfully, but these errors were encountered: