Questions tagged [mbtiles]

MBTiles is a file format for storing map tiles in a single file. It is, technically, a SQLite database. Latest format version as of February 2018 is 1.3.

Tile based web maps are made up of millions of tiles. Imagine loading all of those tiles; it would be inefficient and slow. That’s where MBTiles comes in. The MBTiles specification is an efficient format for storing millions of tiles in a single SQLite database.

SQLite is ideal for serving tiles on the web or displaying directly on mobile devices because it’s used on so many platforms. If you’ve worked with SQL databases before, SQLite should feel very familiar. With SQLite, each database is self-contained and represented as a single .sqlite file. There’s no external setup required. You can copy a .sqlite file from desktop to a mobile device and have all its rows, tables, and indexes ready to be used. It’s a portable, single-file solution for storing and serving web maps.

MBTiles takes advantage of utilities found in SQLite for solving problems like duplicate imagery. Maps that cover large areas of solid color like ocean or empty land can contain thousands of duplicate, redundant tiles.

For more

http://wiki.openstreetmap.org/wiki/MBTiles

https://www.mapbox.com/help/an-open-platform/#mbtiles-in-action

169 questions
8
votes
2 answers

How to create .mbtiles file?

I have tiles (png images) for an offline map and I want to create a .mbtiles-file using these tiles. Please help me how to create a .mbtiles-file using my own images not using Tilemill software? Thanks in advance.
Dipen Chudasama
  • 3,063
  • 21
  • 42
8
votes
2 answers

Showing an offline OSM map file. Suggestion: an MB Tiles file with Js.library

When online access to the internet is not possible, I would like the (offline) HTML5 app show an OSM map via an OSM file. Can you give an example of how I can show in an offline Html5 app OSM tiles that are loaded from an offline OSM map file like…
tm1701
  • 7,307
  • 17
  • 79
  • 168
6
votes
2 answers

Possible to style MBTiles in a leaflet map?

I'm trying to display a .mbtiles layer (created by Tippecanoe) in a Leaflet map. The tiles are loaded with Leaflet.TileLayer.MBTiles. So far nothing is visible on the map, although the MBTiles load fine and are identifiable in the browser's…
Evan
  • 1,960
  • 4
  • 26
  • 54
6
votes
3 answers

Mapbox: How to avoid JavaScript errors for tilesets that aren't available at the current zoom level?

I'm using Mapbox GL JS and loading tileset layers from my Mapbox account. Some of these tileset layers are only available for zoom levels 10 to 15. The default zoom level of my map is 5, and when I load the map I get a JavaScript console error,…
Richard
  • 62,943
  • 126
  • 334
  • 542
6
votes
2 answers

Will or what kind of support does Mapbox have for Vector tiles?

I read MapBox and vector tiles and am wondering if I understand this right. In some future it will be possible to render vector based tiles with iOS MapBox? If yes, how would the RMTileSource for vector tiles look like? In layman's terms, do I…
jack
  • 1,861
  • 4
  • 31
  • 52
5
votes
1 answer

How to convert mbtiles to .osm.pbf

I'm writing a Qt application that is supposed to show a geo-map of a specific geographical region in one of its views on top of which I need to be able to draw various other graphical elements. The requirements are that all the map-tiles must be…
G-L
  • 53
  • 1
  • 5
5
votes
1 answer

How to convert GeoJSON to vector.pbf (Protobuf)?

I have a big GeoJson file and I need to convert it to the vector format that can be loaded by the Mapbox. I need to have an external file, so I can't use Mapbox Studio for uploading and converting the data. Currently I found…
5
votes
1 answer

MapBox GL Android: Offline Maps from custom tile source downloaded but not used

for our app, I'm currently integrating map box with a custom map tile surce (as described here). Everything runs fine with a working internet connection, using the OfflineManager and OfflineTilePyramidRegionDefinition I can download tiles and find…
Phil
  • 568
  • 3
  • 19
5
votes
2 answers

how to export a mapbox studio map as .mbtiles file

So I'm guessing the answer to this is "no", but is there any way to export a map I've designed online with mapbox studio (https://www.mapbox.com/studio/) into a .mbtiles file so I can host it myself? Honestly, I'd be willing to pay money for this…
rikkitikkitumbo
  • 954
  • 3
  • 17
  • 38
5
votes
3 answers

Bypass MapBox 500KB Individual Tile Size Limit?

Does anybody know how to bypass MapBox's 500KB tile size limit? The rule from their website states: "Individual vector tiles can not exceed 500kb at any zoom level." I am hitting this limit with a set of data at a few zoom levels. (I create this…
Andrew
  • 959
  • 14
  • 31
5
votes
2 answers

Offline Map for Private Property with Navigation in iOS

I have an idea of building offline Map for my University Campus (its covering almost 3-4 miles). Like new students or guests can navigate to various blocks in campus. Student can see himself/herself marked on map at current location & can chose…
itsji10dra
  • 4,603
  • 3
  • 39
  • 59
5
votes
0 answers

Not displaying tiles on Android offline maps app using osmdroid with MBTiles file

I need to develop an Android app that needs to display maps but has to work offline all of the time, also the maps correspond to a small city, after browsing a bit I stumbled upon osmdroid, and this along with the usage of a small .mbtiles file…
maxandonuts
  • 595
  • 7
  • 19
5
votes
2 answers

joining together two mbtiles files

I haven't managed to find a way to join two *.mbtiles files together (first one contains zoom level from 0-16 and second one zoom level 17). I was working with different sqlite managers, but no mather how I have exported and imported database2 into…
vvidmar
  • 75
  • 1
  • 10
4
votes
1 answer

How to serve multiple .pbf files instead of .mbtiles with TileServer-GL or OpenMapTiles server as vector tiles into Google Maps with Deck.GL MVTLayer?

Summary I have .geojson files and want to convert them (with tippecanoe / geobuf / other) to .mbtiles or .pbf files to serve them as vector tiles from a server (TileServer-GL / OpenMapTiles / other vector tile server) into Google Maps with Deck.GL's…
Florin Vîrdol
  • 395
  • 2
  • 10
  • 28
4
votes
2 answers

How do I download .MBTiles (Project / Data) from my Mapbox account?

I need a .MBTiles file to store an android tablet. How do I download .MBTiles (Project / Data) from my Mapbox account? See: https://i.stack.imgur.com/IRisc.gif
brunopacola
  • 55
  • 2
  • 4
1
2 3
11 12