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 was archived by the owner on Aug 8, 2023. It is now read-only.
If the tile to be read is offline cached, using the cache.
Actual behavior
Tiles are always loaded online
Problem
Because offline cached maps are assumed to be used in environments with weak radio waves, this operation requires a considerably long time to read maps and is not practical.
Solution
If there is an offline cache, is there an option to use the cache preferentially?
Please tell me if there is a way to realize the expected behavior with the existing mechanism.
The text was updated successfully, but these errors were encountered:
On Android you can workaround this by overriding the connectivity changed information so the engine itself thinks it's offline and will fetch the data from the cache instead.
/** * Manually sets the connectivity state of the app. This is useful for apps which control their * own connectivity state and want to bypass any checks to the ConnectivityManager. * * @param connected flag to determine the connectivity state, true for connected, false for * disconnected, and null for ConnectivityManager to determine. */publicstaticsynchronizedvoidsetConnected(Booleanconnected) {
// Connectivity state overridden by appINSTANCE.connected = connected;
}
Not being able to block network access is blocker for us to switch to Mapbox. I wonder how hard this is to implement and if anybody is wanting to do this for a bounty?
Platform:
iOS / Android
Mapbox SDK version:
Both are latest.
Steps to trigger behavior
Expected behavior
If the tile to be read is offline cached, using the cache.
Actual behavior
Tiles are always loaded online
Problem
Because offline cached maps are assumed to be used in environments with weak radio waves, this operation requires a considerably long time to read maps and is not practical.
Solution
If there is an offline cache, is there an option to use the cache preferentially?
Please tell me if there is a way to realize the expected behavior with the existing mechanism.
The text was updated successfully, but these errors were encountered: