How to convert a map to MBTiles
Generate raster map saves an area of a map as an MBTiles file: a single file with map images that Cartograph Maps and many other map apps can open. Use it to
- turn a Mapsforge map into MBTiles, for example for another app,
- keep an area of an online, WMS or WMTS map for offline use,
- combine the look of a map with your settings (style, effects) into a fixed image map.
It is a Pro feature (see Cartograph Pro).
Which maps: raster maps, such as Mapsforge maps with the classic renderer, Mapsforge raster
multi-maps, MBTiles raster, TwoNav RMAP, Locus and OruxMaps maps, WMS, WMTS and online tile maps,
online MapLibre maps, the offline hillshader, slope, relief and grid maps, and plugin maps.
Not possible: Mapsforge maps with the vector engine (use
the classic renderer first), vector MBTiles, Garmin maps,
.tiles.zip files, tile directories and offline MapLibre maps.
Steps
- Load the map (see Map layers).
- Open the map manager, go to the Active tab and tap the map.
- Choose Generate raster map.
- A frame appears on the map. Move and resize it to the area you want, then tap the Ok (✓) button. The trash button cancels.
- Set Min. zoom and Max. zoom and tap Continue. Each extra zoom level makes the file about four times larger.
- The options show the number of tiles (Count), the expected Size and the zoom levels. Enter a Name, or tick Add to existing map to add the tiles to an MBTiles map you made before.
- Tap Start. Depending on the area and zoom levels this can take minutes.
- When asked “Do you want to load the map now?”, choose whether to show the new map.
The new map is listed in the Offline tab. Its file, named after the map, is in the folder Offline maps in the app’s folder (see where maps are stored). The tiles are saved as compressed PNG images, which keeps sharp map lines and text intact.
Tips
- For an online map, make sure its terms allow saving tiles. The functions are only offered for online maps with Enable tile download on (map properties, Advanced page, card Connection; on by default). See also the online map tile downloader.
- To save the tiles along a route only, use Download map tiles along track in the track’s menu (see Track manager).
- To get one large image instead of tiles, see How to create a map atlas.