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
The event from onPress for a Marker doesn't return the position field that's supposed to be inside e.nativeEvent on iOS. This is returned only on Android.
Hi @melyux, thanks for reporting this. I think this is a mistake in the documentation because this marker uses GMSMarker underneath and his position property type is CLLocationCoordinate2D. This type has only latitude, longitude and animatableData.
Summary
The event from
onPress
for a Marker doesn't return theposition
field that's supposed to be insidee.nativeEvent
on iOS. This is returned only on Android.This bug is further evinced on Stack Overflow.
Reproducible sample code
Steps to reproduce
onPress
for aMarker
nativeEvent
does not return a position, only coordinates. (it should return both, per the docs)Expected result
nativeEvent
should return aposition
value.Actual result
nativeEvent
does not return aposition
value on iOS.React Native Maps Version
1.10.3
What platforms are you seeing the problem on?
iOS (Google Maps)
React Native Version
0.72.4
What version of Expo are you using?
SDK 48
Device(s)
iPhone 15 Po
Additional information
No response
The text was updated successfully, but these errors were encountered: