Export Web Format Tiles (OSM/TMS/Mapbox/RMaps)

The Export OSM (OpenStreetMaps.org), Export TMS Tiles, Export MapBox MBTiles Tileset and Export RMaps SQLite Database commands allow the user to export any loaded data to JPG or PNG files tiled in the configuration required for display in using either the OSM (OpenStreetMaps.org), TMS (Tile Map Service), MapBox, or RMaps naming and tiling standards. When exporting OSM tiles, this command will create both the image tiles and a sample HTML file for displaying the data within a web browser.

Load the HTML file into your web browser to view the data once the export is over, then customize it to your needs. In the case of exporting a MapBox MBTiles tileset or RMaps tiles, the output will be a single SQLite database file containing the defined tiles.

When you select the command, the Tile Export Options dialog (pictured below) appears allowing you to setup the export. This dialog allows you to specify the display name of the map set in your web browser, the zoom level setup, the format of the imagery, and some additional options. There is also an Export Bounds panel which allows you to indicate the portion of the loaded data they wish to export.

Tiling Options

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.

Options

  • 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.

Advanced Options

  • 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.

Loading Web Tiles

Web Formats that contained tiled imaged may be loaded into Global Mapper. To correctly reference the images, add the local file path or url to the Connect to Online Data dialog with the Add New Source button. Web Tiles in Google Maps Tiles, Bing Tiles, TMS, OSM  and other tile formats that do not come as a single tile-set file, may be loaded in this manner. Use the Select Folder button for Tile Source Definition and select a local folder which is the base of the tile source. This builds the base url with the file:/// in front. Alternately enter a web url for the root directory once the tiles are hosted on the web.

When exported from Global Mapper, these web formats will create a *.gm_source_def.xmlfile that may be used to add the files to Online Data Sources using the Add Source from File option. The export will also create an *.htm file that will load the local tiles in a web browser. Internet access is required to load the basemaps included in the Google Maps and Bing Maps tiles.

RMaps SQLite Database, MapBox MB Tiles Tileset, and KML/KMZ (any data as images) files may be loaded directly.