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

fix CameraUpdate.newLatLngBounds() applies incorrect padding on iOS #1039

Closed
wants to merge 2 commits into from

Conversation

easazade
Copy link

fixes #1034

bottom: paddingBottom,
right: paddingRight
)
print(insets.top)
Copy link
Collaborator

Choose a reason for hiding this comment

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

avoid prints

Copy link
Author

@easazade easazade May 13, 2022

Choose a reason for hiding this comment

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

sure 👍

guard let type = cameraUpdate[0] as? String else { return }

if(type == "newLatLngBounds"){
guard let bounds = cameraUpdate[1] as? [[Double]] else { return }
Copy link
Collaborator

Choose a reason for hiding this comment

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

move this to a common function

Copy link
Author

Choose a reason for hiding this comment

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

Will Do

@felix-ht
Copy link
Collaborator

please also run dart and swift formatting

LIBRARY_SEARCH_PATHS = (
"$(inherited)",
"$(PROJECT_DIR)/Flutter",
);
PRODUCT_BUNDLE_IDENTIFIER = com.mapbox.mapboxGlExample;
PRODUCT_BUNDLE_IDENTIFIER = com.mapbox.mmapboxGlExample;
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm not too familiar with iOS development, but this seems off?

And do we want the other changes to this file (specifically regarding code signing / development team) commited to the repo?

Copy link
Author

Choose a reason for hiding this comment

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

Thanks for mentioning this @m0nac0 . i should revert back this line

@stale
Copy link

stale bot commented Jul 13, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added stale and removed stale labels Jul 13, 2022
@easazade
Copy link
Author

I'll try to resolve conflicts and fix review issues this week

@stale
Copy link

stale bot commented Sep 11, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Sep 11, 2022
@stale stale bot closed this Sep 18, 2022
@paulVulog
Copy link

Hi @easazade ,

I guess I am facing the following issue : #1034
This fix should address that.

Any Update ?

@felix-ht
Copy link
Collaborator

felix-ht commented Sep 30, 2022

@paulVulog you can also push the branch @easazade to your own fork and do the required changes to get this mergeable, and create a new PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CameraUpdate.newLatLngBounds() applies incorrect padding on iOS
4 participants