pressable prop for marker #93
HARSHVDARJI
started this conversation in
Ideas
Replies: 1 comment 1 reply
-
|
Markers can't be made non interactive in the Google Maps SDKs. Touches can't pass through markers, even if clicks are intercepted. Exposing pressable={false} on RNMarker would be misleading, so it’s intentionally not supported. |
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.
-
I noticed we have the pressable prop for RNPolygon and RNPolyline, which is really handy. Would it be possible to bring that same prop to RNMarker?
In our current application, we need users to be able to click on the map to get exact coordinates. However, since the marker click listener is 'always on,' it intercepts the touch even when we want to capture the underlying map click.
Having a pressable={false} option for markers (similar to polygons/polylines) would be a lifesaver—it would allow the touch to pass through to the map when we don't need the marker to be interactive.
Beta Was this translation helpful? Give feedback.
All reactions