Skip to content

add edgePadding to fitToSuppliedMarkers function#2479

Merged
alvelig merged 1 commit intoreact-native-maps:masterfrom
marcelkalveram:master
Sep 22, 2018
Merged

add edgePadding to fitToSuppliedMarkers function#2479
alvelig merged 1 commit intoreact-native-maps:masterfrom
marcelkalveram:master

Conversation

@marcelkalveram
Copy link
Copy Markdown

@marcelkalveram marcelkalveram commented Sep 9, 2018

Does any other open PR do the same thing?

No.

What issue is this PR fixing?

Adds the edgePadding option to the fitToSuppliedMarkers function which is supported by Google Maps on both, iOS and Android. (no support for Apple Maps as the native function doesn't support this option).

The feature has been requested in those two issue and I had another use case on a personal project where I had to use a workaround using fitToCoordinates:
#780
#876

Another issue is requesting it for the function fitToElements which should be an easy addition if this PR gets accepted:
#922

How did you test this PR?

Tested on real devices: Android Pixel and iPhone 7.
Tested on iOS simulator: iPhone 6

@rborn
Copy link
Copy Markdown
Collaborator

rborn commented Sep 21, 2018

@marcelkalveram thank you ❤️

LGTM @alvelig 🐽

@alvelig alvelig merged commit 39c994f into react-native-maps:master Sep 22, 2018
pinpong pushed a commit to pinpong/react-native-maps that referenced this pull request Feb 28, 2025
add edgePadding to fitToSuppliedMarkers function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants