Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Use contentInset for visibleCoordinateBounds #14135

Closed
wants to merge 10 commits into from
Closed

Use contentInset for visibleCoordinateBounds #14135

wants to merge 10 commits into from

Conversation

TimWatson
Copy link

@TimWatson TimWatson commented Mar 16, 2019

Fix for #14134

@TimWatson TimWatson requested a review from a team March 16, 2019 01:44
Copy link
Contributor

@1ec5 1ec5 left a comment

Choose a reason for hiding this comment

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

While you’re at it, the macOS implementation of MGLMapView.visibleCoordinateBounds also needs the same fix:

- (MGLCoordinateBounds)visibleCoordinateBounds {
return [self convertRect:self.bounds toCoordinateBoundsFromView:self];
}

platform/ios/src/MGLMapView.mm Outdated Show resolved Hide resolved
@1ec5 1ec5 added bug iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS labels Mar 19, 2019
@TimWatson
Copy link
Author

Any idea why these tests are failing? Is there something else I need to do before this gets merged?

@friedbunny
Copy link
Contributor

friedbunny commented Apr 4, 2019

Thanks for your patience, @TimWatson.

iOS

The ios-release build is failing because of #14345, which is inconvenient but doesn’t indicate an issue with this PR. I’ll push a copy of your branch here and the build should run.

Though your change seems confined, I’d be worried that it will have knock-on effects — in order to merge this, we’ll need to be confident that it’s well tested and has no unforeseen consequences. To run the iOS Maps SDK’s tests locally, see these instructions.

macOS

The macOS build is failing because UIEdgeInsetsInsetRect doesn’t exist in AppKit:

❌  /platform/macos/src/MGLMapView.mm:1293:30: use of undeclared identifier ‘UIEdgeInsetsInsetRect’

To make changes to the macOS project, run make xproj and Xcode will open to the correct environment.

@TimWatson
Copy link
Author

TimWatson commented Apr 4, 2019

Thanks @friedbunny

I fixed the issues with macOS

@friedbunny
Copy link
Contributor

There’s been a fair bit of work done on this recently (#14664, #14795, #14813, etc.) — is this still valid, @fabian-guerra @astojilj?

@friedbunny friedbunny requested a review from fabian-guerra June 11, 2019 23:36
@stale stale bot added the archived Archived because of inactivity label Aug 10, 2019
@stale
Copy link

stale bot commented Aug 11, 2019

This pull request has been automatically detected as stale because it has not had recent activity and will be archived. Thank you for your contributions.

@stale stale bot closed this Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
archived Archived because of inactivity bug iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants