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

[ios] Force update from display link when display link is created. #5164

Merged
merged 1 commit into from
May 28, 2016

Conversation

boundsj
Copy link
Contributor

@boundsj boundsj commented May 26, 2016

This forces the call of the map view's display link target when the display link is created. When a map view is shown the first time this is not required. However, if the display link was torn down and then recreated due to the map view being removed / obscured in the view hierarchy the map view delegate may expect to be informed when the map view did finish loading the map when it is shown again.

This adds a call to updateFromDisplayLink just after a display link is created which helps trigger a full refresh of the map in the sense that all delegate methods get exercised including mapViewDidFinishLoadingMap.

cc @1ec5 @friedbunny

This forces the call of the map view's display link target when the
display link is created. When a map view is shown the first time
this is not required. However, if the display link was torn down
and then recreated due to the map view being removed / obscured in the
view hierarchy the map view delegate may expect to be informed when
the map view did finish loading the map when it is shown again.

This adds a call to `updateFromDisplayLink` just after a display link
is created which helps trigger a full refresh of the map in the sense
that all delegate methods get exercised including
`mapViewDidFinishLoadingMap`.
@boundsj boundsj added bug iOS Mapbox Maps SDK for iOS labels May 26, 2016
@boundsj boundsj self-assigned this May 26, 2016
@boundsj boundsj added this to the ios-v3.3.0 milestone May 28, 2016
@boundsj boundsj merged commit 6ec9295 into master May 28, 2016
@boundsj boundsj deleted the boundsj_force_display_link_update branch May 28, 2016 00:37
1ec5 added a commit that referenced this pull request Jun 3, 2016
Added entries to the iOS SDK changelog for #5124, #2444, #5141, #5164. Removed entries for changes made since the last release; they go in the GitHub prerelease notes but not here in this document.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug iOS Mapbox Maps SDK for iOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant