Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Expose MapView#setOfflineRegion #11876

Closed
tobrun opened this issue May 10, 2018 · 1 comment · Fixed by #11922
Closed

Expose MapView#setOfflineRegion #11876

tobrun opened this issue May 10, 2018 · 1 comment · Fixed by #11922
Labels
Android Mapbox Maps SDK for Android offline

Comments

@tobrun
Copy link
Member

tobrun commented May 10, 2018

A common issue that developers run into when integrating offline, is that a specific map configuration is needed to get their offline region loaded correctly (an example of misconfiguration here. To make this easier, we could expose MapView#setOfflineRegion that would take in a offline region definition and load the related style and position the camera automatically.

@tobrun tobrun added Android Mapbox Maps SDK for Android offline labels May 10, 2018
@LukasPaczos
Copy link
Contributor

Clarifying, the main issue is that when there is no internet connection the onMapReady callback doesn't fire, because default mapbox style failed to load, and users can't load their downloaded offline region that is using a custom style. They'd have to declare that custom style upfront with MapboxMapOptions or via xml which causes a lot of confusion.

We need to document this phenomenon extensively and introducing a method like MapView#setInitialOfflineRegion might bring attention that an action needs to be taken in order to initially load an offline region.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Android Mapbox Maps SDK for Android offline
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants