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.

Annotation selection not working on Mapbox iOS SDK 5.1.0 #15088

Closed

Description

@anttifinnair

MGLAnnotationView cannot be selected on map by tapping annotation and delegate - (void)mapView:(MGLMapView *)mapView didSelectAnnotation:(id <MGLAnnotation>)annotation; isn't called. Same code has worked with Mapbox 5.0.0 and earlier.

Steps to reproduce

  1. Add MGLAnnotationView on map
  2. Tap it

Expected behavior

MGLAnnotation gets selected and didSelectAnnotation delegate is called.

Actual behavior

Nothing happens. Annotation isn't selected.

Configuration

Mapbox SDK versions: 5.1.0
iOS/macOS versions: iOS 12.3.1
Device/simulator models: reprodusable on both simulator and device.
Xcode version: 10.2.1

Activity

  1. added
    iOS
    on Jul 10, 2019
  2. friedbunny commented on Jul 10, 2019

    @friedbunny
    Contributor

    Thanks for the report, @anttifinnair — seems related to #15082.

  3. anttifinnair commented on Jul 11, 2019

    @anttifinnair
    Author

    Yes, that looks related. Selection randomly works on some zoom levels/rotation but mostly it doesn't.

  4. bDivergent commented on Jul 11, 2019

    @bDivergent

    Yes, that looks related. Selection randomly works on some zoom levels/rotation but mostly it doesn't.

    That is what I have also experienced. When I zoom in too far then the annotation will not be visible. Nothing happens.

  5. julianrex commented on Jul 12, 2019

    @julianrex
    Contributor

    Noting I added #15106 which may be the cause, rather than #15082.

  6. added
    Core
    on Jul 18, 2019
  7. azukinohiroki commented on Aug 22, 2019

    @azukinohiroki

    Hi, I have the same problem.
    When I zoom in/out by pinch and release both fingers at the same time, no problem happens.
    Releasing fingers one by one, may cause the problem.
    I hope it will help.

  8. friedbunny commented on Aug 22, 2019

    @friedbunny
    Contributor

    This was fixed by #15097 in ios-v5.2.0. If anyone is still experiencing it after updating, definitely please let us know.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    CorebugiOS

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions