-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
fitToSuppliedMarkers with edgePadding will move Google logo #4590
Comments
Try setting a timeout for the delay in loading the routes of the destination, this will solve half of your problem.
|
# [2.0.0-beta.12](v2.0.0-beta.11...v2.0.0-beta.12) (2023-05-10) ### Bug Fixes * **android:** ui movement when using fitTo{SuppliedMarkers,Coordinates} ([657e05f](657e05f)), closes [#4590](#4590) * **ios-google:** remove redundant if/else ([db5aadc](db5aadc)) * **MapView:** `fitToElements` edgePadding moves logo and UI on android ([e0946c9](e0946c9)) ### Features * **ios:** support edgePadding for fitToElements & fitToSuppliedMarkers ([cf58b84](cf58b84)) ### BREAKING CHANGES * **ios:** fitTo{Elements,SuppliedMarkers} no longer auto apply padding. Use edgePadding.
🎉 This issue has been resolved in version 2.0.0-beta.12 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Hi @manufunk 👋 I've just released I hope you are okay with me closing this for now, and if you find any issues using the newest version, feel free to open a new issue 👍 |
Summary
I've implemented the map and I'm using
fitToSuppliedMarkers
to zoom to all my markers. However as I have some content on the bottom of the map as overlay, I would like to have some padding for thefitToSuppliedMarkers
. I figured out that the optionedgePadding
can be used for that.Android:
However if I add padding to
bottom
, this will also put a padding to the Google logo. Also the other map elements like theshowsMyLocationButton
will move iftop
padding is set as well. Seems like it is behaving like a normalmap
padding.iOS:
Is there any option to have a similar function because currently it looks really bad as markers are very close to the map edges :(
I just used the sample code and added edgePadding
Reproducible sample code
Steps to reproduce
See code
Expected result
Logo will stay and only marker zoom will have the padding
Actual result
Logo will be moved by the padding value
React Native Maps Version
1.3.2
What platforms are you seeing the problem on?
Android
React Native Version
0.70.5
What version of Expo are you using?
SDK 47
Device(s)
Android Emulator
Additional information
No response
The text was updated successfully, but these errors were encountered: