Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Tapping annotation within user location accuracy halo selects user location annotation #5571

Closed

Description

@matrejek

Platform: iOS 9.3
Mapbox SDK version: 3.3.0 beta 3

Steps to trigger behavior

(Screenshot below)

  1. Add annotation near user location
  2. Set it to show callout view
  3. When annotation is in range of user location accuracy (blue circle) it is impossible to show callout view (marker is not tappable). Instead of that we get callout for user location annotation

Expected behavior

When annotation in blue circle is tapped it should show its callout.

Actual behavior

When annotation in blue circle is tapped user location annotation is presented.

aaa

Activity

  1. added
    iOS
    on Jul 5, 2016
  2. added
    annotations
    on Jul 5, 2016
  3. changed the title [-]Annotation view overlapped by user location range[/-] [+]Tapping annotation within user location accuracy halo selects user location annotation[/+] on Jul 21, 2016
  4. 1ec5 commented on Jul 21, 2016

    @1ec5
    Contributor

    This issue reproduces in v3.3.0 but not v3.2.0.

  5. added this to the ios-v3.4.0 milestone on Jul 21, 2016
  6. 1ec5 commented on Jul 21, 2016

    @1ec5
    Contributor

    The regression was introduced in #1582. We now hit-test the user location annotation view based on its layer.presentationLayer, since the view can move around with implicit animation in response to the user location changing. We apparently should be hit-testing based on the presentationLayer of _puckDot or _dotLayer.

  7. friedbunny commented on Jul 22, 2016

    @friedbunny
    Contributor

    A fix for this should probably be done in conjunction with @frederoni’s refactor in #5573 or wait for that to land.

  8. modified the milestones: ios-v3.3.2, ios-v3.4.0 on Jul 27, 2016
  9. self-assigned this
    on Jul 27, 2016
  10. 1ec5 commented on Jul 27, 2016

    @1ec5
    Contributor

    I think we can land a more targeted fix in v3.3.2.

  11. added 2 commits that reference this issue on Jul 28, 2016
    8253b6c
    438dfa9
  12. friedbunny commented on Jul 28, 2016

    @friedbunny
    Contributor

    Fixed by #5816.

  13. friedbunny commented on Aug 7, 2016

    @friedbunny
    Contributor

    True, #5816 excluded the pulsing halo layer but not the static accuracy ring.

    e4a9173 in #5882 includes a more comprehensive fix that specifically hit-checks the main dot. That will go in v3.4.0, but we could consider porting a similar fix to yet another patch release... @1ec5?

  14. friedbunny commented on Aug 8, 2016

    @friedbunny
    Contributor

    This was fixed in #5894, which is now available in the v3.3.4 release.

  15. mrmacete commented on Aug 9, 2016

    @mrmacete

    Thank you!

  16. matrejek commented on Aug 9, 2016

    @matrejek
    Author

    Thanks, it now works as it should.

  17. fabioknoedt commented on Aug 9, 2016

    @fabioknoedt

    Cool, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

annotationsbugiOS

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions