MapBox MB Tiles Tileset
Loading MBTiles files
MapBox MBTiles raster files can be loaded into Global Mapper v18.1 and later. Global Mapper will import MBTiles raster data sets with the following extensions:
Export MabBox MBTiles
The Export MapBox MB Tiles command allows the user to export any loaded vector data sets to an MapBox MB Tiles format file.
When selected, the command displays the MapBox MB Tiles Export Options dialog which consists of an Export Bounds panel that allows the user to set up the portion of the loaded data they wish to export.
Zoom Level Setup
Select the highest detail zoom level to export from the drop down. The zoom level number, as well as approximate meters/pixel are listed for the format. The dialog will automatically recommend a zoom level based on the loaded data.
Enter Number of Zoom Levels to Use to specify the number of lower resolution zoom levels that will be included in the export.
Specify the Tile Size of each tile. Note this is an advanced setting, as many of the tile formats only officially support the default tile size.
Tile Image File Format
Specify the file format to use for the individual tiles.
Tile Image File Naming
The default tiling naming will follow the standard for the format. To use a different tile naming scheme, check the Use Custom Tile Naming box, and build the name with the following variables:
- %z - zoom level
- %x - column as decimal number
- %x_hex - column as 8-digit hexadecimal number
- %y-row as decimal number
Example: L%z\%y\%x.png would create a tile in the destination at \L5\9\11.png
Transparency (How See Through is the Map)
With the transparency slider all the way to the right, the output tiles will be entirely opaque, and no background or basemap will be visible in the area of the data. This slider controls the overall transparency of the features or rasters, and is different the advanced option for PNG files to makes the background of the tile transparent. Note that only PNG format supports image transparency, so with JPG specified as the tile image format, the loaded data will be lightened to show through to the map background color at the base of the tile.
The opacity value will be reported as a percentage next the section title.
- Make Image Tiles Transparent (PNG Format Only) - This option will make the background of the tile transparent, rather than the color of the map background. Only PNG files support transparency (it is not supported in JPG format), so the Tile Image File Format must be PNG for this to take effect.
- Save Vector Data if Displayed - This option appears when vector data is loaded. Check this to include the vector data as part of the image on the tiles.
- Skip Existing Tiles -Check this option to continue an export that was partially completed, or completed for a different zoom level range. The current export will skip writing of any tiles that already exist in the output directory. (Note this is dependent on specifying the same output directory and tile image file naming settings.
- Skip Empty Tiles - Tiles that do not contain any data will not be written if this setting is checked. The default of unchecked will create a complete coverage of tiles, even if some of the tiles are blank.
- Fill to Tile Bounds -Check this option to expand the designated bounds of the tiles to coincide with the bounds of the tiles at the lowest zoom level being exported. This setting keeps the coverage of data consistent across all the zoom levels.
- Create World Files for Exported Tiles -Check this option to generate a world file for each exported tile.
- Only Export Fully Covered Tiles -This will limit the export to only tiles that are completely within the specified bounds, thereby canceling the export of tiles that would have partial coverage.
- Always Create 8-Bit Palette PNG Files -Data with many color variations will export as 24-BIT RGB tiles. Check this option to produce only 8-BIT palette images with a limited palette of 256 colors or less. This will create smaller files.
- Export PNG for Transparent Tiles -Enable this option to selectively export PNG files only for tiles that require transparency.
- Create Separate Folder for Each Row -For formats that do not create a row folder (BING Maps), this setting will divide the output into row folders. Each individual filename will still be the full quad name.
For more information on the available tiling options for export see Export Web Format Tiles (OSM/TMS/Mapbox/RMaps)
When exporting a MapBox MBTiles tileset, there is an additional tab on the Export Options dialog (shown below). The MBTiles Options tab allows specifying data and options that are specific to an MBTiles export.
Description: Enter a Description for the map
Type: Indicate whether or not the map is a base layer or overlay layer.
Create from existing TMS tiles directory- This option will an mbtiles database from an existing set of intermediate files, or a TMS directory. Select this option and navigate to the existing tile directory to skip generating each tile image, and just build the mbtiles database based on the Tiling Options.
Delete Intermediate Tile Files After Creating Tileset - During the export process for MBTiles, Global Mapper will create a set of tile files. Choose the Location for the files. Indicate whether or not to deleted the intermediate files after the tileset generation is complete.
Deleting intermediate files is enabled by default, but it in cases where the same sets of tiles will be used in different MBTiles package exports, saving the intermediate file and using the above Create from Existing option for subsequent exports will save time recreating the same tiles.
If a folder location is selected for the files, it must be an empty directory, or a directory that does not exist.