mapbox / mapbox-gl-native

Interactive, thoroughly customizable maps in native Android, iOS, macOS, Node.js, and Qt applications, powered by vector tiles and OpenGL
https://mapbox.com/mobile
Other
4.35k stars 1.33k forks source link

Offline database fails in Mapbox Studio #16481

Open AAverin opened 4 years ago

AAverin commented 4 years ago

Platform: Mapbox SDK version:

Steps to trigger behavior

  1. Build mapbox-gl-native and use mbgl-offline to generate an offline package
  2. Try to upload it to Mapbox Studio as mbtiles or sqlite
  3. Observe both failing with no such column tile_data

Expected behavior

There should be a way to browse offline package in Mapbox Studio to evaluate that region and map are correct

Actual behavior

andrewharvey commented 4 years ago

The offline package format/schema is different to that of an mbtiles. Only MBTiles can be uploaded to Mapbox, not an offline pack.

For local debugging I put together https://github.com/alantgeo/mbgl-offline2mbtiles to convert from the offline pack to an mbtiles which you can then inspect with mbview.