This repository was archived by the owner on Jun 21, 2023. It is now read-only.
Repository navigation
Switch background snapshot to periodic. - #412
Merged
Merged
Conversation
julianrex
force-pushed
the
jrex/remove-snapshot
branch
from
September 3, 2020 03:27
5d6c542 to
c6dd79f
Compare
nishant-karajgikar
approved these changes
Sep 3, 2020
julianrex
force-pushed
the
jrex/remove-snapshot
branch
from
September 3, 2020 21:21
c6dd79f to
3764c04
Compare
julianrex
requested review from
fabian-guerra
and removed request for
a team and
1ec5
September 3, 2020 21:35
katydecorah
pushed a commit
that referenced
this pull request
Sep 4, 2020
* master: Release 6.2.0 beta.1 prep (#417) Update for Xcode 12 release (#415) Switch background snapshot to periodic. (#412) Fix map stuttering by switching render call to use setNeedsDisplay (#411) Add a flag to enforce using catched tiles (#416) Improve header documentation for MGLObservable (#398) Expose styling options for the user location annotation. (#403)
This was referenced Sep 8, 2020
mappy-mobile
pushed a commit
to Mappy/mapbox-gl-native-ios
that referenced
this pull request
Sep 17, 2020
emerson233
pushed a commit
to emerson233/mapbox-gl-native-ios
that referenced
this pull request
Jul 21, 2021
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR fixes #44, by taking the background snapshot while the map is idle.
Calling
snapshotin response toUIApplicationWillResignActiveNotificationappears to be no longer supported in OpenGL (see the same issue reported to the Flutter repo).Another option is to completely remove snapshot handling, but without this we do see a momentary flash when coming into the foreground.
Since this PR periodically takes the snapshot, we now cross-fade from the snapshot view to the map view, to avoid a jarring transition, for example: