You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is problem with priority of press action on custom markers. When marker overlaps another marker then not always this which is on top is handled by onPress prop.
Hi,
I'm experiencing an issue with the priority of the onPress action for custom markers. When one marker overlaps another, the marker on top doesn't always handle the onPress action as expected.
When I press a marker that is visually on top and then redraw it, it remains on top visibly, but the pressable area sometimes prioritizes the marker below it.
Previously, in version 1.14, the behavior was different:
Red area: The clickable area for the marker behind.
Green area: The clickable area for the marker in front.
This older behavior was incorrect, as some areas of the front marker weren’t responsive. The current behavior is an improvement, but it’s still not perfect.
The issue occurs when clicking on the upper part of the top marker—it sometimes triggers the marker below, even though it shouldn’t.
Summary
Hi.
There is problem with priority of press action on custom markers. When marker overlaps another marker then not always this which is on top is handled by onPress prop.
Hi,
I'm experiencing an issue with the priority of the onPress action for custom markers. When one marker overlaps another, the marker on top doesn't always handle the onPress action as expected.
In the latest version (1.20.1), the behavior is shown in this video:
https://github.com/user-attachments/assets/8a94ede4-c09f-4445-8c4a-78e65798a2f7
When I press a marker that is visually on top and then redraw it, it remains on top visibly, but the pressable area sometimes prioritizes the marker below it.
Previously, in version 1.14, the behavior was different:
This older behavior was incorrect, as some areas of the front marker weren’t responsive. The current behavior is an improvement, but it’s still not perfect.
The issue occurs when clicking on the upper part of the top marker—it sometimes triggers the marker below, even though it shouldn’t.
Reproducible sample code
Steps to reproduce
Render markers on map (OS doesnt matter), press specific part of marker
Expected result
Marker visible on top should be always pressed.
Actual result
Marker visible on top is not always pressed (sometimes is pressed marker below of top marker)
React Native Maps Version
1.20.1
What platforms are you seeing the problem on?
Android, iOS (Google Maps)
React Native Version
"0.74.6
What version of Expo are you using?
SDK 51
Device(s)
iPhone 15, Pixel 6
Additional information
No response
The text was updated successfully, but these errors were encountered: