Skip to content

fix onSelected event for markers with custom view#1079

Merged
lelandrichardson merged 1 commit intoreact-native-maps:masterfrom
yonahforst:marker_select
Mar 26, 2017
Merged

fix onSelected event for markers with custom view#1079
lelandrichardson merged 1 commit intoreact-native-maps:masterfrom
yonahforst:marker_select

Conversation

@yonahforst
Copy link
Copy Markdown

@yonahforst yonahforst commented Mar 3, 2017

addresses #436, parts of #553

Problem: when using markers with a custom subview, didSelectAnnotation does not get triggered on tap events, unless you press on the outside edge of the marker (outside the subview but inside the marker)

Solution: 'marker-press' events manually call selectAnnotation on the marker's mapview

@yonahforst yonahforst changed the title addresses #436 fix marker onSelected events when using custom views Mar 3, 2017
@yonahforst yonahforst changed the title fix marker onSelected events when using custom views fix onSelected event for markers with custom view Mar 3, 2017
@lelandrichardson lelandrichardson merged commit 9f513ca into react-native-maps:master Mar 26, 2017
@lelandrichardson
Copy link
Copy Markdown
Collaborator

Thank you!

@leonardogutierrezh
Copy link
Copy Markdown

this creates an issue when you have multiple markers close together, the callout box jumps between the different markers

@switz
Copy link
Copy Markdown

switz commented Oct 19, 2019

Can this be hidden behind a flag? I believe it's causing multiple callouts to open on iOS when they're nearby.

pinpong pushed a commit to pinpong/react-native-maps that referenced this pull request Feb 28, 2025
fix onSelected event for markers with custom view
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants