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

Tap gesture recognizer for style layers #6515

Closed
1ec5 opened this issue Sep 29, 2016 · 2 comments
Closed

Tap gesture recognizer for style layers #6515

1ec5 opened this issue Sep 29, 2016 · 2 comments
Labels
archived Archived because of inactivity feature iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling

Comments

@1ec5
Copy link
Contributor

1ec5 commented Sep 29, 2016

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

@stale
Copy link

stale bot commented Nov 20, 2018

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

@stale stale bot closed this as completed Nov 20, 2018
@1ec5 1ec5 reopened this May 18, 2019
@stale stale bot removed the archived Archived because of inactivity label May 18, 2019
@stale stale bot added the archived Archived because of inactivity label Nov 14, 2019
@stale
Copy link

stale bot commented Nov 14, 2019

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

@stale stale bot closed this as completed Nov 14, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived Archived because of inactivity feature iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS runtime styling
Projects
None yet
Development

No branches or pull requests

1 participant