-
Notifications
You must be signed in to change notification settings - Fork 103
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Offline map question #609
Comments
Hi @Miguelstucom , we do have an example showcasing how Offline map works. To disconnect Mapbox stack to the network you can use
|
Thanks for answering @maios, the thing is that im following that example, in my project I have a button which download the mapstyle and some needed tiles, when the download is complete, I enter the map without internet connection, i should see the mapstyle and those tiles, but the map is still empty, even if I hardcode lat,lon geometry, I cant see that area after download when I enter the map offline. Is your code needed to show information downloaded? And Im not able to find documentation about your code in flutter package. Thanks for your help. |
Could you provide a some sample code, better yet a small application, that would be a great help for us to debug this issue :-D |
Thanks for the help @maios, here is the code, most of it is just the example code, LoadStylePack and downloadMap are the await functions called when I press my button at the main menu, after this stop downloading, Im able to enter the map, but before entering, I remove my connection to see if everything downloaded correctly and I do not force the user to enter the map to cache it. DownloadItineraryMap is supposed to be called more than once to download more than one tile if needed.
This is my map widget at a different app page
Just to advice, if I just enter the map without downloading and with internet connection, its shows perfectly, the problem is trying to download the map information and entering it without internet connection. |
Hi @Miguelstucom sorry for late reply, could you provide a minimal sample app to help investigating this? |
Hi @maios I was able to reproduce it using the example app you mentioned here: #609 (comment)
|
Hello, I'm new to this and I've been using the example code for a couple of days. I wanted to ask if there is any way for me to create a button in the main menu to download the map information I need. After that, disconnect the phone from the internet, enter the map offline, and see everything that has been downloaded in the main menu?
Just to avoid forcing the users of my project's app to enter the map to download all the information.
I'm sorry if this is a basic question, but I've been programming for a short time and I can't find a way to do it.
The text was updated successfully, but these errors were encountered: