Is it possible to read .mbtiles files through Mapbox iOS or Android SDK?
I'm trying to download .mbtiles from osm2vectortiles.org and setting up a full offline application running offline maps.
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It only takes a minute to sign up.
Sign up to join this communityIs it possible to read .mbtiles files through Mapbox iOS or Android SDK?
I'm trying to download .mbtiles from osm2vectortiles.org and setting up a full offline application running offline maps.
MBTiles can be displayed in the Mapbox Maps iOS SDK by hosting a web server within your app and pointing the map to localhost
. I've posted my solution here:
https://gist.github.com/namannik/3b7c8b69c2d0768d0c2b48d2ed5ff71c
I'm sure this same sort of thing could be done on Android as well.
This kind person has provided a similar solution for Android as is mentioned by Alan. It uses as local server (JPG/PNG/PBF etc) as the tile srouce reading from your local mbtiles files. I haven't implemented this, but from a brief reading it seems sound:
https://gist.github.com/typebrook/7d25be326f0e9afd58e0bbc333d2a175
Yes, it is possible. See "OpenMapTiles" app on Google Play or App Store.
We can provide you with the source code of our sample mobile app which is able to read MBTiles offline directly. Contact info@klokantech.com.