Skip to content
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

feat: add map padding #373

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

feat: add map padding #373

wants to merge 2 commits into from

Conversation

illuminati1911
Copy link
Contributor

Fixes #292

This PR adds map padding support to both regular map view as well as Android auto/Carplay map views.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

@@ -188,6 +188,15 @@ export const useNavigationAuto = (): {
moveCamera: (cameraPosition: CameraPosition) => {
return NavAutoModule.moveCamera(cameraPosition);
},

setPadding: (
Copy link
Contributor

@jokerttu jokerttu Dec 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure about this order.

  • iOS UIEdgeInsetsMake has currently implemented order: top, left, bottom, right.
  • In Android API the order is: left, top, right, bottom.
  • Using CSS (react users could be familiar with this) the order would be: top | right | bottom | left

Should we go with css order, or with Android (or keep the current iOS ordering).

@ArturoSalazarB16 @caio1985 ?

Copy link
Contributor

@jokerttu jokerttu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
And seems to work on both, Android and iOS.
On android the bottom padding does not move the re-center button like on iOS, but this is something that differs between Android and iOS SDKs.
Added one comment, waiting resolution from @ArturoSalazarB16 and @caio1985

@illuminati1911
Copy link
Contributor Author

illuminati1911 commented Dec 9, 2024

On android the bottom padding does not move the re-center button like on iOS, but this is something that differs between Android and iOS SDKs.

Yeah, this got me confused for a moment. 😄

@illuminati1911 illuminati1911 marked this pull request as ready for review December 9, 2024 09:14
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.

Map padding feature
3 participants