You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.
If you send the host app to the background and bring it back to the foreground, all visible tiles are forcibly reloaded, HTTP requests and all. At best, the entire map appears to flash in and out. At worst, tiles go AWOL until they’re refetched and rerendered.
Source::update() calls addTile(), which creates a new VectorTileData and calls TileData::request() because the cache introduced in #1255 is empty. It might be worth noting that backgrounding and foregrounding the app causes Map::stop() and start() to be called, respectively.
Not sure of the current status, but on the 1065-separate-ui-from-map-thread branch, Map::stop() shuts down the rendering thread completely, which basically deallocates everything.
I'm not sure anyone understands the current backgrounding/foregrounding strategy. I've never been able to get anyone to write up an explanation anyway.
I'm not sure anyone understands the current backgrounding/foregrounding strategy. I've never been able to get anyone to write up an explanation anyway.
I think @kkaefer might, and I know much of this is complicated by various orders of things happening between iOS and Android for these sequences.
If you send the host app to the background and bring it back to the foreground, all visible tiles are forcibly reloaded, HTTP requests and all. At best, the entire map appears to flash in and out. At worst, tiles go AWOL until they’re refetched and rerendered.
Source::update()
callsaddTile()
, which creates a newVectorTileData
and callsTileData::request()
because the cache introduced in #1255 is empty. It might be worth noting that backgrounding and foregrounding the app causesMap::stop()
andstart()
to be called, respectively./cc @ansis @incanus
The text was updated successfully, but these errors were encountered: