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 API #42

Closed
tobrun opened this issue Mar 16, 2019 · 14 comments
Closed

Offline API #42

tobrun opened this issue Mar 16, 2019 · 14 comments

Comments

@tobrun
Copy link
Collaborator

tobrun commented Mar 16, 2019

Add support for offline API.

@AAverin
Copy link
Contributor

AAverin commented Mar 4, 2020

How far are we with this feature, any PRs necessary?
Offline support is critical for my project and is a deciding factor on the map library to use.

@AAverin
Copy link
Contributor

AAverin commented Mar 5, 2020

Looks like side-loading is outdated - guides on the website no longer tell how to make and download tiles.db for side-loading.
Would love to get some guidance on this topic @tobrun.

@AAverin
Copy link
Contributor

AAverin commented Mar 5, 2020

Will put this link for those interested. It explains how to generate a database for side-loading: https://github.com/mapbox/mapbox-gl-native/wiki/Sideloading-offline-maps

I will explore if it's possible to side-load downloaded files with path_provider like explained here: https://medium.com/@danaya/download-assets-dynamically-in-flutter-16c3472a65e5

@W3Technics
Copy link

Thank you for the link. Also eager to hear about developments for the offline capabilities!

@AAverin
Copy link
Contributor

AAverin commented Mar 14, 2020

So far I have managed to side-load offline map from the network and put it to MapBox with path_provider. You can follow articles mentioned above

@thipokKub
Copy link

thipokKub commented Apr 9, 2020

The wiki seems to be deleted. Could you provide the instruction for side-loading? Thank you

@Zeldroxe
Copy link

Any news about how to make tiles.db ?

@AAverin
Copy link
Contributor

AAverin commented May 22, 2020

Here is what I got from MapBox support.

Offline support will not be revoked from official products. Offline sideloading however is not supported anymore, and there is no plan to support it, even though it is working.

What they are saying is that you can sideload and do offline on your own, but officially they are no longer ready to spend resources on supporting sideloading functionality.

mbgl-offline tool still should be available in this repo: https://github.com/mapbox/mapbox-gl-native

Example usage was

./mbgl-offline --north [north coordinate] --west [west coordinate] --south
[south coordinate] --east [east coordinate] --minZoom [minimum zoom] --maxZoom
[maximum zoom] --output [output file path] --style [style URL] --token [mapbox
token]

@AAverin
Copy link
Contributor

AAverin commented May 22, 2020

It's also kind of possible to do something similar with GUI tool
https://github.com/mapbox/mapbox-gl-native-ios/releases/

@AAverin
Copy link
Contributor

AAverin commented May 22, 2020

I have also seen a few apps that would allow directly in the app to select a region and it would be downloaded for offline usage. Didn't explore this part yet, probably there should be something in SDK for this

@m0nac0
Copy link
Collaborator

m0nac0 commented May 22, 2020

I think @maximumbuster is working on a PR for an offline API, which would allow you to select and download offline regions at runtime. (There's also discussion about this feature at #88)

@Zeldroxe
Copy link

Thanks @AAverin

I don't understand how ./mbgl-offline works, what is the initial setup ? When i write the command, my terminal say that command doesn't exist, maybe need i to build something ? I tried to do what was written in the Developing section of the mapbox-gl-native but that say that my platform is not supported. (i'm currently on windows)

@stale
Copy link

stale bot commented Jan 14, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@vijin-eaf
Copy link

can someone help me on getting .db files

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants