Skip to content
This repository has been 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
matrejek opened this issue Jul 5, 2016 · 12 comments
Assignees
Labels
annotations Annotations on iOS and macOS or markers on Android bug iOS Mapbox Maps SDK for iOS
Milestone

Comments

@matrejek
Copy link

matrejek commented Jul 5, 2016

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

@tobrun tobrun added the iOS Mapbox Maps SDK for iOS label Jul 5, 2016
@boundsj boundsj added the annotations Annotations on iOS and macOS or markers on Android label Jul 5, 2016
@1ec5 1ec5 changed the title Annotation view overlapped by user location range Tapping annotation within user location accuracy halo selects user location annotation Jul 21, 2016
@1ec5 1ec5 added the bug label Jul 21, 2016
@1ec5
Copy link
Contributor

1ec5 commented Jul 21, 2016

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

@1ec5 1ec5 added this to the ios-v3.4.0 milestone Jul 21, 2016
@1ec5
Copy link
Contributor

1ec5 commented Jul 21, 2016

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.

@friedbunny
Copy link
Contributor

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

@1ec5
Copy link
Contributor

1ec5 commented Jul 27, 2016

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

@friedbunny
Copy link
Contributor

Fixed by #5816.

@ghost
Copy link

ghost commented Aug 6, 2016

The problem is still happening in the v3.3.3. I can't select an annotation within the user location's accuracy range.

@friedbunny friedbunny reopened this Aug 7, 2016
@friedbunny
Copy link
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?

@ghost
Copy link

ghost commented Aug 7, 2016

It would be awesome to have that fix as soon as possible. Now I'm stuck to the release v3.2.3 because of that. I want to start using MGLAnnotationView with the selected state support but I can't have this problem in the app. Thanks!

@friedbunny
Copy link
Contributor

friedbunny commented Aug 8, 2016

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

@mrmacete
Copy link

mrmacete commented Aug 9, 2016

Thank you!

@matrejek
Copy link
Author

matrejek commented Aug 9, 2016

Thanks, it now works as it should.

@fabioknoedt
Copy link

Cool, thanks!

matthieupinte added a commit to derniercri/react-native-mapbox-gl that referenced this issue Jan 31, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
annotations Annotations on iOS and macOS or markers on Android bug iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

No branches or pull requests

7 participants