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

Use contentInset for visibleCoordinateBounds - #14135

Closed
TimWatson wants to merge 10 commits into
mapbox:masterfrom
TimWatson:master
Closed

TimWatson wants to merge 10 commits into
mapbox:masterfrom
TimWatson:master

Conversation

@TimWatson

@TimWatson TimWatson commented Mar 16, 2019 •

Copy link
Copy Markdown

Fix for #14134

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

@1ec5 1ec5 left a comment

Copy link
Copy Markdown
Contributor

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];
}

Comment thread platform/ios/src/MGLMapView.mm Resolved
@1ec5 1ec5 added bug iOS Mapbox Maps SDK for iOS macOS Mapbox Maps SDK for macOS labels Mar 19, 2019
@TimWatson

Copy link
Copy Markdown
Author

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

@friedbunny

friedbunny commented Apr 4, 2019 •

Copy link
Copy Markdown
Contributor

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

TimWatson commented Apr 4, 2019 •

Copy link
Copy Markdown
Author

Thanks @friedbunny

I fixed the issues with macOS

Comment thread platform/macos/src/MGLMapView.mm Resolved
@friedbunny

Copy link
Copy Markdown
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

stale Bot commented Aug 11, 2019

Copy link
Copy Markdown

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