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.

Tap gesture recognizer should fail unless annotation is nearby #7194

Closed

Description

@1ec5

MGLMapView’s built-in UITapGestureRecognizer should set its state to UIGestureRecognizerStateFailed as soon as it discovers that no annotations are nearby. Combined with #2278, the developer would be able to install their own “fallback” tap gesture recognizer that handles taps when the built-in gesture recognizer, meant for annotation selection, has nothing to select.

/cc @danpat @incanus

Activity

  1. added
    annotations
    iOS
    macOS
    on Nov 26, 2016
  2. added this to the ios-future milestone on Nov 26, 2016
  3. danpat commented on Nov 26, 2016

    @danpat

    I hit this. I have annotations on the map, but I would also like to allow the user to tap elsewhere on the map and perform a feature lookup using visibleFeaturesAtPoint:.

  4. modified the milestones: , ios-future on Nov 28, 2016
  5. 1ec5 commented on Nov 28, 2016

    @1ec5
    ContributorAuthor

    Note that the recognizer should not fail if an annotation is already selected and tapping closes the annotation’s callout view.

  6. modified the milestones: ios-v3.4.0, on Dec 1, 2016
  7. 1ec5 commented on Dec 1, 2016

    @1ec5
    ContributorAuthor

    Fixed in #7246.

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

    annotationsbugiOSmacOS

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions