Repository navigation
[core] Localize and simplify state for MapChangeDidFinishLoadingMap event - #4524
Conversation
|
I should have included my reasoning for why this is thread safe. The relevant events are:
Invocations, including synchronous ones, are FIFO, so the
|
That branch is obsolete. Just deleted it.
We have several methods that are currently crashing because On Android for instance |
|
I started implementing this new signal and realized that it would be better implemented after we get rid of the context thread because we can safely call |
|
👍 for this one, created #4527 for my other comments. Sorry for the noise. |
|
👍 |
…vent Only Map needs to track this state, and it can simply be set when beginning to load a style and reset when finished.
|
Excellent! 👍 |
Fixes #4500 for iOS.
Only
Mapneeds to track the loaded state, and it can simply be set when beginning to load a style and reset when finished.The only commit related to
MapData::loadingthat I could find was 2ee7b02. I thought I remembered some additional adjustments to how this variable was used based on past bugs, but could not find any. There is one branch that references it,tmpsantos-MapChangeDidFinishLoadingMap, which looks to be obsolete. @tmpsantos do you remember what this was about? Is anyone else aware of subtleties relating toMapData::loadingorMapChangeDidFinishLoadingMapthat I forgot to take into account?This provides an alternative fix for #4512 on Android, but the least risky approach would be to continue using that workaround for the release and perhaps revert it on the main branch.
I attempted to write a test for
MapChangeDidFinishLoadingMap, but it is very difficult. It will be easier once #2909 lands.👀 @1ec5 @brunoabinader @tmpsantos