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

mapbox for Android 加载离线的数据MBTiles #56

Open
Ox10cx opened this issue Jan 14, 2020 · 1 comment
Open

mapbox for Android 加载离线的数据MBTiles #56

Ox10cx opened this issue Jan 14, 2020 · 1 comment

Comments

@Ox10cx
Copy link

Ox10cx commented Jan 14, 2020

我遇到的问题

mapbox for Android 加载离线的地图数据(mbTiles),不知道怎么实现数据离线化

我遇到的问题截图

该问题的类别

Android

@canglaoshidaidui
Copy link

canglaoshidaidui commented Jan 19, 2020

个人建议使用拦截器去实现离线数据的加载,比mapbox api的提供的方法更灵活。
在这个HttpRequestUtil.setOkHttpClient 去实现对瓦片数据的拦截。在android转发请求并且构建响应体,就可以实现离线数据的加载了。有一点代码量,但是真的很好用...。或者你找找非官方的sdk

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

2 participants