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
0
votes
1 answer

Load vector tiles from folder instead than from MBTiles file

Is there a way to load several vector PBF files that are in a folder in a similar way than it's possible to do it now from an online source? My app deals with several MBTiles files, but I'd prefer to read a folder with PBFs in it instead. So I can…
xarlymg89
  • 2,552
  • 2
  • 27
  • 41
0
votes
1 answer

Openlayers 5 serve local MBTiles

I'm trying to serve tiles from a local .mbtiles in an Ionic 4 project. Step by step I managed to download the mbtiles and to create successfully the source using XYZ new XYZ({ tileLoadFunction: (tile: ImageTile, url) => { //stuff }, …
dvdpzzt
  • 73
  • 1
  • 9
0
votes
0 answers

Maptiler using OSM and Satellite tiles at the same time

I have downloaded and setup the maptiler server on Docker on my machine. I bought a subscription and have downloaded the OSM maps and it seems to work just fine. However I see there are satellite maps I would like to use as well. Is this possible.…
0
votes
1 answer

Issue creating maps with leaflet.js with files from local directory.

I am currently working on an application that needs to have a map work offline. I essentially followed this tutorial: http://blog.davidelner.com/create-map-with-tilemill-and-leaflet/ I created an mbtiles file of the area I needed…
teknek
  • 25
  • 1
  • 7
0
votes
2 answers

How does Android Studio display an offline map using osmdroid and mbtiles

We are working on an android app that has to display an offline map of one specific location (say 3-7 neighboring islands). We successfully displayed the whole world, but that is too heavy. And when the phone is offline, the map has limited zooming…
0
votes
1 answer

mapbox create, load, and edit attributes of mbtiles

This is not really a programming question but more of looking for advice. I am trying to figure out the best way to load about 15 million polygons onto a web map. The file is large, about 20GB uncompressed. The best solution that I have found is to…
blg2
  • 355
  • 6
  • 23
0
votes
1 answer

TileMill exports too big mbtile file

I'am trying to export mbtile file from TileMill to use it in my map server. But file is too huge, 17th level will cost 100+GB only for my country. However, i found free mbtile from openmaptiles.org with only 1GB size for the same are. My question…
Yernar Arystanov
  • 176
  • 1
  • 4
  • 10
0
votes
0 answers

osmdroid displaying map from .mbtiles

I have a problem trying to display map from .mbtiles file using osmdroid 5.6.5 this is my code: val path = Environment.getExternalStorageDirectory().absolutePath.plus("/osmdroid/tiles/map.mbtiles") val file = File(path) val…
0
votes
1 answer

Extracting .mbtiles exported by TileMill using mb-util

I'm using TileMill to export data to .mbtiles format. Then when I'm extracting these mbtiles using mb-util, only tiles are being extracted and no utfgrid files in json format. I've tried mb-util ./test.mbtiles ./test and mb-util --grid_callback=""…
Titsjmen
  • 789
  • 6
  • 15
0
votes
1 answer

Add some drawing on a map and map it's streets

I would like to use a layer on top of a google map and map the streets on this layer. Specifically - I have autocad design and would like to implement it somehow into a map, using tiles (maybe MBTiles) and provide info on the design. I'm familiar…
Yosi199
  • 1,745
  • 4
  • 22
  • 47
0
votes
1 answer

Geoserver/google_maps/Android saving cache

My application is getting tiles from geoserver and displaying it over a google map. I would like to know if it is possible to save those tiles so i can access them offline ?? Ps: I downloaded an mbtiles file but it's locally accessed, when data…
0
votes
1 answer

Why do I need so many map tiles to serve a map?

It's my understanding that each map tile is a 256x256 pixel image. So... if I'm looking at a 1400 by 1400 pixel screen... that's roughly 36 tiles to cover an entire screen (6tiles by 6tiles)... and let's say I want my map at its highest zoom level…
rikkitikkitumbo
  • 954
  • 3
  • 17
  • 38
0
votes
0 answers

how to run mbpipe... a program I just installed

I'm trying to use this tool: https://github.com/mapbox/node-mbtiles/wiki/Post-processing-MBTiles-with-MBPipe I've installed mbtiles with npm install -g mbtiles. I've also installed it locally (in the dir I'm working in) with just plain npm install…
rikkitikkitumbo
  • 954
  • 3
  • 17
  • 38
0
votes
1 answer

Mapbox Android app - Can raster resources be uploaded through mobile application?

Ive been digging through Mapbox Android documentation and support to find out if it is possible to upload a raster tile from android application. Download / serving is vastly documented, but not upload. In essence, I need to make an app that will…
Anete
  • 1
0
votes
1 answer

Tiles generated from mbutil does not render using leafletjs

First I created a map using TileMill then export it as ".mbtiles" then using mbutil I generated tiles(.png) of that file. Now, I want to use those tiles using leafletjs but it returns an error: As I examine the file, it did not match. What could…
Matt Mateo
  • 168
  • 5
  • 14