-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Make MGLMapView non opaque by default #7859
Conversation
When you open a PR to fix an issue, please mention that issue number: #7256 in this case. GitHub also allows you to automatically close an issue simply by including “Fixes #7256” (or similar). GitHub suggests doing this in the commit message, but that leads to a lot of noise if you end up rebasing — better to do it in the PR body. (Note that issues auto-close once those commits have been merged into the master branch only.) /cc @jmkiley |
We should add notes to the ios and macos changelogs. |
b54f828
to
fd02e7a
Compare
@@ -5,6 +5,7 @@ | |||
This version of the Mapbox macOS SDK corresponds to version 3.4.1 of the Mapbox iOS SDK. The two SDKs have very similar feature sets. The main differences are the lack of user location tracking and annotation views. Some APIs have been adapted to macOS conventions, particularly the use of NSPopover for callout views. | |||
|
|||
* Fixed an issue causing MGLMapView’s `camera`’s `heading` to be set to a negative value, indicating an undefined heading, when the map view faces northwest. The heading is now wrapped to between zero and 360 degrees, for consistency with MGLMapView’s `direction` property. ([#7724](https://github.com/mapbox/mapbox-gl-native/pull/7724)) | |||
* Fixed an issue causing MGLMapView flash of black. ([#7859](https://github.com/mapbox/mapbox-gl-native/pull/7859)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This PR doesn’t change anything about the macOS SDK, since MGLMapView has separate implementations on iOS and macOS. The behavior is already correct on macOS, so you can remove this blurb.
d6b566b
to
e105cd6
Compare
According to #7256 to solve "flash of black" one alternative is set
MGLMapView.opaque = NO
but one concern was how this may affect the performance. Changingopaque = NO
resulted in a reduction in FPS from an average of 50.63 to 49.61. This is unnoticeable but we can keep tracking this in case something comes up.(Benchmark tests were done using bench app)