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前端如何清理缓存 #49

Open
fsdhr1 opened this issue Jan 6, 2020 · 1 comment
Open

mapbox前端如何清理缓存 #49

fsdhr1 opened this issue Jan 6, 2020 · 1 comment

Comments

@fsdhr1
Copy link

fsdhr1 commented Jan 6, 2020

##mapbox前端如何清理缓存

Android

@canglaoshidaidui
Copy link

FileSource.getResourcesCachePath(context) 方法可以查看mapbox缓存数据的路径,一般是在/storage/emulated/0/Android/data/包名/files 这个文件夹下的 mbgl-offline.db文件中。
也可以使用 FileSource.setResourcesCachePath方法去修改它的默认缓存路径。但是必须在地图初始化完成之前。 mbgl-offline.db里面有个 tiles表,缓存数据就存在这里面了。

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