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

Add mergeOfflineRegions method to enable side-loading tiles #588

Merged
merged 2 commits into from
Dec 29, 2019

Conversation

tsemerad
Copy link
Contributor

@tsemerad tsemerad commented Dec 28, 2019

This adds mergeOfflineRegions method to the offline manager. Tested and working on iOS and Android.

I decided to use the name mergeOfflineRegions (which is what it's called in the Android SDK) because it made more sense to me than naming it addContentsOfFile or addContentsOfURL (as it's called in the iOS SDK).

I originally started making an example to demonstrate it in the example app, but since the side-loaded database must be generated using the same version of the Mapbox SDK that the client is using, such an example would break whenever we update either of our iOS or Android SDK versions.

This resolves #574.

@kristfal kristfal merged commit 254c51d into rnmapbox:master Dec 29, 2019
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

Successfully merging this pull request may close these issues.

Feature request: sideload offline packs
2 participants