3

I would like to be able to open in MBTiles a map format for my android device.

I know to open this file with ArcGIS Android SDK but does anybody know how to open this from open source library, such as from Mapbox,osmdroid...etc?

closed as too broad by PolyGeo Apr 2 '17 at 2:43

Please edit the question to limit it to a specific problem with enough detail to identify an adequate answer. Avoid asking multiple distinct questions at once. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

1

Checkout MAPLY/whirly globe open source map toolkit for iOS/android.http://mousebird.github.io/WhirlyGlobe/ . It supports MBTILES, GEOJSON, shape files, vector tiles, WMS, WMTS, XYZ, TMS. MAPBOX, AND MUCH MORE

  • I've been reading the documentation, GIT repo, and it looks pretty interesting. Do you have any experience with this option? I mean, have you been using it in a production app for Android? My use case is an offline app, with a lot of data to be shown over the map. – xarlymg89 Oct 10 '18 at 14:55
  • 1
    yes we use it for many years in high production use!!! in apps for US Military and NGA and Pilots – Jordan Bess Oct 11 '18 at 16:48
  • 1
    As long as mbtiles or geopackages are Spherical Web Mercator the speed/performance is great. Vector Tiles mbtiles support is great. check out aeroapp.info – Jordan Bess Oct 11 '18 at 16:49
  • It now supports OGC GeoPackage SQLite GPKG for Raster Tiles and Vector Features with SLD - Style Layer Describer Symbology Encoding – Jordan Bess Oct 11 '18 at 16:55
  • Thanks for the info! I'll give it a chance and see if it's better than my current option (CartoDB). – xarlymg89 Oct 12 '18 at 9:35
0

osmdroid contributor here

Drop the .mbtiles files into /sdcard/osmdroid/

Discovery should be automatic. "Tile source" names are not applicable for mbtiles in the osmdroid context.

So in theory, if you put the sample app on a device and start it up, you should be looking at whatever tiles are in the .mbtile files

  • Hi thanks for the reply but I want to put . MBTiles file to my own Android app. – piyush Nov 24 '16 at 5:46
  • You should probably check out the wiki for osmdroid then, step by step directions – spy Nov 24 '16 at 12:05
  • I have tried in android Gradle osmdroid sdk 5.5 but I am not able to see anything in screen if you have any sample pl share ... – piyush Nov 24 '16 at 12:08
  • Also see the faq, on osmdroid's wiki. Common issue, usually either permissions or storage availability, or maybe you didn't set the user agent value – spy Nov 24 '16 at 12:13
  • Ok thanks for the reply...I will check and let you know – piyush Nov 24 '16 at 12:14

Not the answer you're looking for? Browse other questions tagged or ask your own question.