-
Notifications
You must be signed in to change notification settings - Fork 122
Closing and reopening offline map breaks map functionality #637
Comments
I no longer work on this map SDK or its successor, but I’ll make an observation based on flutter-mapbox-gl/maps#703 (comment):
Make sure you (or Flutter Mapbox GL) aren’t manually touching cache.db while the application is running. The only time you can do that safely is at the very beginning of the process, before anything related to Mapbox GL has initialized. Otherwise, the only safe way to sideload offline packs is to call /cc @mikelmaron |
@1ec5 side-loading and activating offline maps basically replaces cache.db file with a new tiles database and then expectation is that new instance of mapbox will load different tileset. This works good for the first instance of mapbox, but not for the second. And it also works fine on Android. Some more issues that can be related: |
Steps to reproduce
cache.db
files for Mapbox (offline side-loading)Expected behavior
Offline maps are working and correctly displaying data from the database
Actual behavior
On second time screen with map opens database crashes and map doesn't display
Configuration
Mapbox SDK versions: 5.6.0 - 6.4.0
iOS/macOS versions: Any
Device/simulator models: Any
Xcode version: 13
The text was updated successfully, but these errors were encountered: