Implement onPoiClick for Apple Maps #4729
wkev-n
started this conversation in
Feature requests
Replies: 3 comments 5 replies
-
I have a working version that I'm using as a patch currently. How does the team triage incoming pull requests? |
Beta Was this translation helpful? Give feedback.
3 replies
-
Any news regarding this feature? Much needed. |
Beta Was this translation helpful? Give feedback.
1 reply
-
For anybody needing this on Thanks @wkev-n for your initial patch, which got me most of the way there! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The release of iOS 16 introduced selectable map features to Apple Maps, allowing users to select points of interest. However, there is currently no callback implemented for this feature in
react-native-maps
.Proposal
To add support for selectable map features, I'm proposing reusing
onPoiClick
inMapView
that is triggered when a user selects a point of interest. This function should behave similarly toonPoiClick()
for Google Maps, but with a different type definition triggered since Apple Maps places do not have place IDs. We can populate it with data inMKPlacemark
.Possible Implementation
We'll first need to configure
MapView
to have selectable map features:The proposed method definition for the Apple Maps version of
onPoiClick()
would be something like this:By default, Apple animates selected points of interests. We can avoid that to by deselecting them in the
didSelectAnnotationView
callback.Beta Was this translation helpful? Give feedback.
All reactions