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 for style layers #6515

Closed

Description

@1ec5

As discussed in #6505, implementing interactive style layers (for use with the runtime styling API) is a lot more involved than implementing interactive annotations. We can mitigate the pain by offering subclasses of UITapGestureRecognizer and NSClickGestureRecognizer that only send their actions when tapping or clicking on a feature within the map view – and that make it easier to get the tapped/clicked feature.

MGLFeatureTapGestureRecognizer and MGLFeatureClickGestureRecognizer would have a layerIdentifiers property for filtering taps by layer and a -featureInMapView: method for getting the tapped/clicked feature from within the action method.

This is essentially the iOS/macOS equivalent to mapbox/mapbox-gl-js#1002.

/cc @frederoni @incanus

Activity

  1. added
    iOS
    macOS
    on Sep 29, 2016
  2. added
    archived
    on Nov 18, 2018
  3. stale commented on Nov 20, 2018

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

  4. reopened this on May 18, 2019
  5. removed
    archived
    on May 18, 2019
  6. added
    archived
    on Nov 14, 2019
  7. stale commented on Nov 14, 2019

    @stale

    This issue has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

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

    archivedfeatureiOSmacOSruntime styling

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions