Skip to content
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 mapbox #398

Closed
simo9900 opened this issue Aug 29, 2020 · 5 comments
Closed

offline mapbox #398

simo9900 opened this issue Aug 29, 2020 · 5 comments

Comments

@simo9900
Copy link

simo9900 commented Aug 29, 2020

Hi. for the offline use I didn't see any code in this doc https://docs.mapbox.com/help/troubleshooting/mobile-offline/

Can you tell me what to do exactly?

@m0nac0
Copy link
Collaborator

m0nac0 commented Sep 6, 2020

Offline support is being worked on in #336.
We also support offline sideloading https://github.com/tobrun/flutter-mapbox-gl#offline-sideloading, but I think Mapbox removed their docs on how to create the required offline tiles package, so I'm not sure if they still support that.

@shroff
Copy link
Collaborator

shroff commented Sep 7, 2020

@m0nac0 offline sideloading is still supported (though I'm not sure for how long, given they've removed the docs for it).

As I just commented in #387

you can use the mbgl-offline tool in the mapbox-gl-native repo. Follow the instructions in the repo to build everything, and you will find the binary under build/bin. Use --help to explore args.

Maybe this would be worth mentioning in the README?

In any case, you also need this tool to create dbs to use with mergeOfflineRegions, which I've got working and through flutter-mapbox-gl, and will send out a PR for once #336 has landed.

@AAverin
Copy link
Contributor

AAverin commented Sep 7, 2020

I was able to implement offline side-loading using mbgl-offline. Required quite some work for my use case.

@lFaustus
Copy link

lFaustus commented Sep 11, 2020

I was also able to sideload offline region, but there's a problem in IOS, the map gesture like dragging does not work when offline sideloading, but everything works if online mode only. I haven't tested it on the real ios device as I don't have one, only in simulator. Can anyone test it for me on a real ios device if gesture works when offline sideloading? The problem is only present in IOS.
[EDIT]: problem solved, i fail to notice there was a cameraTargetBounds set.

@tobrun
Copy link
Collaborator

tobrun commented Nov 7, 2020

#42

@tobrun tobrun closed this as completed Nov 7, 2020
@flutter-mapbox-gl flutter-mapbox-gl deleted a comment from AAverin Nov 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants