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

listOfflineRegions fails on Android if no map has been shown #172

Closed
danielelkington opened this issue Sep 27, 2017 · 1 comment
Closed
Milestone

Comments

@danielelkington
Copy link

When you call listOfflineRegions on Android and no map has been shown, the following error is received.
Using MapView requires setting a valid access token. Use Mapbox.getInstance(Context context, String accessToken) to provide one.

The readme says you can do the following

mapbox.listOfflineRegions({
    // required for Android in case no map has been shown yet
    accessToken: accessToken,
  })

However listOfflineRegions doesn't appear to take a parameter, and Typescript cannot compile the code if you try to provide one.

@EddyVerbruggen
Copy link
Collaborator

You're right, downloadOfflineRegion supports this kind of usage correctly, but listOfflineRegions doesn't. Let me fix that..

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

2 participants