; ;Sample custom type definition file - ; ; ; ;HOW TO USE with GPS/Sendmap20 ; ; -Modify/prepare new custom definition text file ; -Use cGPSmapper to creat a TYP file: ; cGPSmapper typ custom.txt [custom.TYP] ; ; if output filename is not provided, the out filename will be product code with FID as hex number with TYP ; extension ; ; -Use sendmap20 rev 3.3 Beta ; drop IMG files ; drop TYP file ; be sure to use same region name for IMG and TYP file ; ;HOW TO USE with MapSource ; ; -Use [_ID] section to define correct FID/ProductCode ; -as above - create TYP file ; -add in registry - only for FAMILIES! String entry TYP ; -fill the entry with full path & name to the TYP file ; ; After that - under the product name there should be keys: ; ID - with ID of the map ; IDX,MDR - optionam - with global indexes ; TYP - custom type definition ; ; *WARNING* - with some specific FID (ID) values custom type definition is NOT WORKING! ; ; ; ;Section [_ID] ;Define Family ID, ProductCode for which custom type definition shall be used - this section is important ;ONLY if the TYP file is uploaded to GPS with MapSource. For sendmap20 ver 3.3 or above this section is not ;obligatory [_id] ProductCode=1 FID=630 [End] ;Section [_DRAWORDER] ;Polygon draw priority definition section ; ;Section defines which polygons are shown and in what order are draw in the device / MapSource ;If a certain polygon type is not mentioned in the list then it will NOT BE VISIBLE IN THE DEVICE! ;If your intention is to show all the polygons in device - you must prepare a full list of polygons! ; ;Draw order defines which polygons are to be visible on the top. Lowest priority is 1 while the highest is 8 ; ;Format: ;Type=POLYGON_CODE(HEX),PRIORITY [_drawOrder] TYPE=1,1 Type=2,1 Type=3,1 Type=4,1 Type=5,1 Type=6,1 Type=7,1 Type=8,3 Type=9,1 Type=0x0a,2 Type=0x0b,2 Type=0x0c,2 Type=0x0d,2 Type=0x0e,2 Type=0x13,2 Type=0x14,2 Type=0x15,2 Type=0x16,2 Type=0x17,3 Type=0x18,3 Type=0x19,3 Type=0x1a,4 Type=0x1e,2 Type=0x1f,2 Type=0x20,2 Type=0x28,1 Type=0x29,1 Type=0x32,1 Type=0x3b,1 Type=0x3c,4 Type=0x3d,4 Type=0x3e,4 Type=0x3f,4 Type=0x40,8 Type=0x41,8 Type=0x42,8 Type=0x43,8 Type=0x44,4 Type=0x45,2 Type=0x46,2 Type=0x47,2 Type=0x48,3 Type=0x49,4 Type=0x4c,5 Type=0x4d,5 Type=0x4e,5 Type=0x4f,5 Type=0x50,3 Type=0x51,6 Type=0x52,4 Type=0x53,5 [end] ;Section [_LINE] ; ;Custom line definition - changes 'look & feel' of the built in type ; ;There are basically two types of definition ; - as line ; - as bitmap ; ;For the 'line' definition it is possible to define ; - Line widht ; - Border widht ; ;For the 'bitmap' definition it is possible to define ; - Bitmap for the line - 32 pixel long and 1 to 32 pixel high ; - Bitmap color - with maximum 2 colors only ; ;Common attributes are: ; - Type - Line type to be substitute ; - Day foreground color ; - Day background color - if not defined of '-1' then color is not used (invisible) ; - Night foreground color ; - Night background color - if not defined of '-1' then color is not used (invisible) ; ;UseOrientation=Y|N - if set to true, then device will try to rotate the bitmap in the line direction ; ;Antialias=Y|N ; ;Definition of colors and bitmap is done with format similar to the XPM bitmap format ; ;In below example there is a definition of bitmap 32 pixels wide and 5 pixel heigh with 2 colors ;and 1 char long alias name for the color ; ;IT IS FORBIDDEN TO USE LITERAL NAMES IN THE DEFINITION EXCEPT 'none' COLOR! ; ;Color #203040 means - 0x20 for the red part, 0x30 for the green part and 0x40 for the blue part ;#ffffff is white ;#000000 is black ; ;Xpm="32 5 2 1" ;"# c #000000" < day / night foreground ;" c #fffff0" < day / night background ;"################################" ;" ######## ######## " ;" ######## ######## " ;" ######## ######## " ;"################################" ; ; ;If line is defined NOT as the bitmap - then the XPM define only colors: ;Xpm=0 0 2 1" ;"1 c #123456" ;"2 c #987654" ; ; First two colors are for day - if 'none' color is defined - it will be always foreground ; otherwise - first color is foreground, second is background ; ; Next (optional) two colors are for night mode - with remarks as above ; ;Xpm=0 0 4 1" ;"1 c #123456" < day foreground ;"2 c #987654" < day background ;"3 c #123456" < night foreground ;"4 c #987654" < night background ; ;Name substitution ; - Stings1-4 - substitution for up to 4 languages - consist from language code and name ; ;StringX=code,literal name ; ;Language codes: ;0x00 - unspecified ;0x01 - french ;0x02 - german ;0x03 - dutch ;0x04 - english ;0x05 - italian ;0x06 - finnish ;0x07 - swedish ;0x08 - spanish ;0x09 - basque ;0x0a - catalan ;0x0b - galician ;0x0c - welsh ;0x0d - gaelic ;0x0e - danish ;0x0f - norwegian ;0x10 - portuguese ;0x11 - slovak ;0x12 - czech ;0x13 - croatian ;0x14 - hungarian ;0x15 - polish ;0x16 - turkish ;0x17 - greek ;0x18 - slovenian ;0x19 - russian ;0x1a - estonian ;0x1b - latvian ;0x1c - romanian ;0x1d - albanian ;0x1e - bosnian ;0x1f - lithuanian ;0x20 - serbian ;0x21 - macedonian ;0x22 - bulgarian [_line] Type=1 LineWidth=4 BorderWidth=0 xpm="0 0 4 0" "1 c #0000e0" "2 c none" "3 c #0000e0" "4 c none" string1=4,CTR [end] [_line] Type=2 LineWidth=4 BorderWidth=0 xpm="0 0 4 0" "1 c #c80050" "2 c none" "3 c #c80050" "4 c none" string1=4,CTA [end] [_line] Type=3 LineWidth=6 BorderWidth=0 xpm="0 0 4 0" "1 c #a0a0ff" "2 c none" "3 c #a0a0ff" "4 c none" string1=4,GAA [end] [_line] Type=4 UseOrientation=Y string1=4,MBZ Xpm="32 6 4 1" " c none" "# c #0000e0" "3 c none" "4 c #0000e0" " ## ## " " #### #### " " ###### ###### " " ###### ###### " " #### #### " " ## ## " [end]