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
2
votes
0 answers

Change map style of mapbox-gl-cordova-offline map in Cordova app

I have created an app with Cordova, that has an offline map with vector tiles. I used mapbox-gl-cordova-offline for offline maps. At the moment, the mbtiles files for the offline map is integrated in the APK and the offline map works fine. But now I…
Hollul
  • 319
  • 4
  • 16
2
votes
1 answer

How to add style into .mbtiles file

I downloaded a payed .mbtiles file from Open Street Map and managed to create nice maps using openmaptiles-server over Kitematic. However, I would like to use this .mbtiles file as offline repository of tiles in an Android based application I'm…
Haggai
  • 458
  • 1
  • 5
  • 13
2
votes
0 answers

Extracting parts of an MBTiles file into separate files using custom polygons

I have a planet.mbtiles files and I need to create custom .mbtiles extracts using custom polygon borders and not any form of bounding box. The only two tools that I can find is mbtiles-extracts and tilelive. mbtiles-extracts: Seems to me the most…
Ian23
  • 33
  • 1
  • 1
  • 4
2
votes
1 answer

Loading a MBtiles on Google Map V2

I have created a MBtile file using MapTiler https://www.maptiler.com/ I can load this MBtile fine with OpenStreetMap map.setTileSource(new XYTileSource("MyMap", 0, 18, 256, ".jpg", new String[] {})); But I cannot load it using google map (with the…
Alexis
  • 1,825
  • 4
  • 23
  • 28
2
votes
1 answer

Serving a large dataset with minimal bandwidth

I want to serve a large spatial dataset, preferably without webgl support, over minimal bandwith. I've seen many examples doing so. For example: https://interaktiv.morgenpost.de/europakarte/ What would be the best way to achieve something like…
Titsjmen
  • 789
  • 6
  • 15
2
votes
1 answer

Osmdroid 5.6, offline MBTiles

I'm trying to use MBtiles offline with osmdroid, I took code sample from here https://github.com/osmdroid/osmdroid/blob/master/OpenStreetMapViewer/src/main/java/org/osmdroid/samplefragments/tileproviders/SampleOfflineOnly.java But always empty map…
user3369485
  • 117
  • 1
  • 1
  • 7
2
votes
1 answer

How to render MbTiles on to the mapView in Mapbox Android SDK

How to render MbTiles on to the mapView in Mapbox Android SDK? And I am not able to import MBTilesLayer class.. Should I add any jar file to import it..?
Soumya
  • 35
  • 7
2
votes
1 answer

tippecanoe: don't drop any points?

I have a GeoJSON file with about 30,000 points in. I would like to use tippecanoe to turn this into a Mapbox tileset (an mbtiles file). I would like to drop none of the points, and for the tileset only to be available between zoom levels 10 and 15.…
Richard
  • 62,943
  • 126
  • 334
  • 542
2
votes
2 answers

How can I merge osm files while retaining all node, way, and relation information?

Background I am trying to make a reduced size vector mbtiles file for the world for a compact offline maps solution I am working on for Windows desktop. To do so I have found OsmAnd's reduced size World_basemap_2.obf to be exactly what I need, but…
longlostbro
  • 528
  • 2
  • 7
  • 24
2
votes
0 answers

How to set tile_data from .mbtiles file as tiles for leaflet?

I'm developing a hybrid mobile app using meteorjs and cordova. App needs to have offline map support. I exported a .mbtiles file using Maperitive, of area that can be viewed offline and copied the file to my app so I can access it when loading tiles…
2
votes
0 answers

Could not list layers for this store, an error occurred retrieving them: No enum constant org.geotools.mbtiles.MBTilesMetadata.t_type.BASELAYER

I am trying to load my .mbtiles file in geoserver. I have installed the mbtiles plugin. But when I try to upload the file it gives me following error: Could not list layers for this store, an error occurred retrieving them: No enum constant…
Rooney
  • 83
  • 7
2
votes
2 answers

Mapbox Android SDK with online custom MBTiles

I have started to build an android apps using Mapbox Android SDK. I want to use my custom mbtiles file created from Tilemill. I was following this instruction Code to Display the Tilemills mbtiles in android project I have successfully implemented…
Devil's Dream
  • 655
  • 3
  • 15
  • 38
2
votes
1 answer

OSMdroid Loading Multiple Offline MBTIles Via ListView

I am using OSMdroid with Offline MBTiles. I need to be able add users to select multiple MBtiles from a ListView. ListView windows is easy. However, I need help getting different MBtiles loaded based on MBtiles selected from ListView. My MBTiles…
user914425
  • 16,303
  • 4
  • 30
  • 41
2
votes
2 answers

Code to Display the Tilemills mbtiles in android project

I am working on an android project in which i have to show the offline map using mbtiles . Is there any tutorial which shows how to set the mbtiles inandroid project .
Hitesh
  • 125
  • 2
  • 10
2
votes
1 answer

MKTileOverlay in iOS 7 with mbtiles database

Is there a way by which I can directly use mbtiles database with MKTileOverlay without using a third party framework like MapBox or any other? Right now, I have the tiles stored in a folder structure and the code I am using is below: NSString…
1 2
3
11 12