logo separator

TYP file compiler

17
Feb

Another recent feature added is the ability to compile TYP file from the .txt format.

There is no special option needed, just place the .txt file on the command line wherever you would normally put a .typ file and it will be compiled to a .typ file with the same name and processed as though you had put that file on the command line.

A TYP file has a family id, and this must match the map it is used with. To make this easy, the family id is set automatically by mkgmap to the family-id that is being used to compile the map set. This will override any family id that is set within the TYP txt file itself. If no family-id option is given then the one in the txt file will be used.

The compiler supports some of the newer features in the TYP file:

  • images with single colour transparency (gif-style)
  • images with partially transparent colours (alpha channel)
  • true colour images (16 million colours)
  • true colour images with transparency
  • Icons containing the same image in different resolutions, that can be displayed at a high resolution on newer devices.

The .txt files are best created with a graphical editor such as TYPWiz or the ati land web based editor.

There is a wiki page that describes the language that is accepted at mkgmap typ compile if you want to write software to create such files or even create them by hand! The compiler also attempts to read files produced by all the major know editors in addition to the recommended syntax described on that page.

Posted by steve on 17 Feb 2012

Latest commits

  • mkgmap-r4262 improve default style (defaultStyleTidy3e.patch by Ticker Berkin with small modifications).
    11 jan 2019
  • mkgmap-r4261 don't treat amenity=shelter + shelter_type=public_transport like other shelters.
    07 jan 2019
  • mkgmap-r4260 prevent IndexOutOfBoundsException for special case where wrong house number intervals cause a road to be split into > 0x3ff segements..
    28 dec 2018
  • mkgmap-r4259 apply_first-v2.patch: Implement and document new apply_first style command..
    13 dec 2018
  • splitter-r592 route-complete.patch: Implement a new option --route-rel-values which tells splitter that route relations of the given type should be kept complete. ....
    13 dec 2018
See more...