react-native-maps / react-native-maps

React Native Mapview component for iOS + Android
MIT License
15.16k stars 4.86k forks source link

Application crashes when MapView.Circle center longitude is greater than 180 #5109

Closed TierryBr closed 1 month ago

TierryBr commented 4 months ago

Summary

If you create a very large radius, for example the entire state will have a very large length, and when displaying this on iOS the application crashes, the same does not happen on Android

Reproducible sample code

<MapView
    ref={ref=> {this.map = ref}}
    provider={PROVIDER_GOOGLE}
    style={Styles.map}
    >
        <MapView.Circle
            center={{longitude: 181,latitude: 40}}
            radius={2000}
        />
</MapView>

Steps to reproduce

add a longitude above 180

Expected result

could display a longitude above 180 like on android

Actual result

application crashes when displaying a Circle with center having a length greater than 180

React Native Maps Version

1.15.6

What platforms are you seeing the problem on?

iOS (Google Maps)

React Native Version

0.72.5

What version of Expo are you using?

Not using Expo

Device(s)

Iphone 15 Pro Max

Additional information

No response

clertonf commented 4 months ago

Same problem here too

github-actions[bot] commented 1 month ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If the issue remains relevant, simply comment Still relevant and the issue will remain open. Thank you for your contributions.