-
Notifications
You must be signed in to change notification settings - Fork 13
Fix map zoom out issue on Android #1060
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix map zoom out issue on Android #1060
Conversation
stevekuznetsov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems reasonable enough
do we need to worry about users being confused by this change? I know we have wanted to do some sort of change here a while ago but stopped to not cause user confusion 😄 @rustynwac maybe that is a you question. I am convinced people will figure it out likely, but if there is feedback you will be the one to suffer from it. p.s. I totally know the experience today is already confusing but at least it has been consistently confusing for a while now |
I might be too close to the problem, but I was so confused the first time I used the modal that hitting the X cleared out the field. Since it's a required field I don't really understand the need to clear out the field when the user can just pull up the modal and update the location. However, if there's past feedback that we've gotten saying that this is what users want I can change it back. |
I don't find the current one to be too confusing though I see what you're saying. I think less change is probably better where possible. |
Okay, I'll change the functionality of the X button back to what it was, but I'll leave the updated button position. It just makes it consistent with the other modals we have in the app |
#1042
This fixes an issue that we've had on Android where the map in the observation location field was zoomed out on Android. I'm approaching this fix as more of a stopgap solution since, hopefully, we will be changing map packages soon.
This also makes 2 updates to the modal that I decided to go ahead and fix while making changes here.
This fix is based off this issue that was reported on
react-native-maps. While we don't have the version that's impacted talked about here, the issue seems the same so I changed how the map is mounted so that it's only mounted and shown when the modal is displayed instead of behind the scenes like it was.react-native-maps/react-native-maps#5563
Caveats:
Recording of testing from Pixel 6a:
https://github.com/user-attachments/assets/b4015dce-ca34-413a-8a5b-f93edac907cb
What's shown: