; ;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=800 [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 ; ;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] ;change railway look Type=0x14 ;try to rotate bitmap in the right direction UseOrientation=Y ;change names for objects which has no label ;for Polish (code 0x15) string1=4,KOLEJ ;and for English (code 4) string2=0x15,KOLEJ ;define XPM with the bitmap Xpm="32 5 2 1" "# c #000000" " c #fffff0" "################################" " ######## ######## " " ######## ######## " " ######## ######## " "################################" [end] ;Section [_POLYGON] ; ;Custom polygon definition - changes 'look & feel' of the built in type - always as 32x32 bitmap defined ;as XPM format (see above remarks) ; ;If the bitmap is defined as 0x0 pixels - then it is assumed to be filled with a solid color ; ;For the XPM definition it is always expected to find 2 or 4 colors definition - where : ; 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 ; ;THE BITMAP FOR POLYGON CAN USE ONLY FIRST 2 COLORS - EVEN IF 4 COLORS IS DEFINED! ;3RD and 4TH COLOR IS USED AUTOMATICALY IN THE NIGHT MODE ; ; For transparent color use always 'NONE' as a color name ; Only hex codes for colors are allowed - no literal names are permitted ; ; Bitmap definition is common for both - day & night ; ;Name substitution ; - Stings1-4 - substitution for up to 4 languages - consist from language code and name [_polygon] Type=0x14 string1=4,LAS string1=0x15,LAS XPM="32 32 2 1", "! c #008000", "# c #00FF00", "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!####!!!!!!!!!!!!!!!!!!!!!!!", "!!!!######!!!!!!!!!!!!!!!!!!!!!!", "!!!########!!!!!!!!!!!!!!!!!!!!!", "!!##########!!!!!!!!!!!!!!!!!!!!", "!!##########!!!!!!!!!!!!!!!!!!!!", "!!##########!!!!!!!!!!!!!!!!!!!!", "!!!########!!!!!!!!!!!!!!!!!!!!!", "!!!!######!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!##!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!##!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!##!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!##!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!##!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!#!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!###!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!#####!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!#!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!#######!!!!!!!", "!!!!!!!!!!!!!!!!!#########!!!!!!", "!!!!!!!!!!!!!!!!!!!!!#!!!!!!!!!!", "!!!!!!!!!!!!!!!!###########!!!!!", "!!!!!!!!!!!!!!!#############!!!!", "!!!!!!!!!!!!!!!!!!!!!#!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!#!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!##!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"}; [end] [_polygon] Type=0x15 string1=4,PARK string1=0x15,PARK XPM="32 32 2 1", "! c #008000", "# c #00FF00", "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!####!!!!!!!!!!!!!!!!!!!!!!!", "!!!!######!!!!!!!!!!!!!!!!!!!!!!", "!!!########!!!!!!!!!!!!!!!!!!!!!", "!!##########!!!!!!!!!!!!!!!!!!!!", "!!##########!!!!!!!!!!!!!!!!!!!!", "!!##########!!!!!!!!!!!!!!!!!!!!", "!!!########!!!!!!!!!!!!!!!!!!!!!", "!!!!######!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!##!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!##!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!##!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!##!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!##!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!#!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!###!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!#####!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!#!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!#######!!!!!!!", "!!!!!!!!!!!!!!!!!#########!!!!!!", "!!!!!!!!!!!!!!!!!!!!!#!!!!!!!!!!", "!!!!!!!!!!!!!!!!###########!!!!!", "!!!!!!!!!!!!!!!#############!!!!", "!!!!!!!!!!!!!!!!!!!!!#!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!#!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!##!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!", "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"}; [end] [_polygon] Type=0x28 ;Only colors definition - polygon by default will be solid Xpm="0 0 4 1" "1 c #4d70ea" "2 c none" "3 c #c9c9c9" "4 c none" [end] ;Section [_POINT] ; ;Custom point/POI definition - changes 'look&feel' of the built in type - up to 24x24 pixels bitmap (doesn't need ; to be rectangle!) ; ;IMPORTANT - IT SEEMS THAT THE MAXIMUM VISIBLE SIZE IN DEVICE / MAPSOURCE IS 16x16 pixels bitmap ; ;Bitmap with up to 254 different colors, with any size withing bounds of 24x24 pixels ; ;There could be one bitmap definition DAYXPM common for day and night mode of two bitmaps DAYXPM and NIGHTXPM ; ;Common attributes are: ; - Type - Point/POI type to be substitute ; - SubType - Point/POI sub type to be substitute ; - ColorX=definition of color ; - BitmapNN=series of values - color numbers separated by comma ; ; Bitmap is defined as a matrix of pixels using colors defined by ColorX key, color 0xff is reserved for special ; invisible color ; ;Name substitution ; - Stings1-4 - substitution for up to 4 languages - consist from language code and name [_point] Type=0x2d SubType=0x03 String1=4,KINO String1=0x15,KINO DAYXPM="16 16 5 1", " c None", "! c #000000", "# c #FFFF00", "$ c #929292", "% c #9B0000", " ", " #$#$#$#$#$#$#$ ", " $$%$$%$%$$$$$# ", " #$%$%$$$$$$$$$ ", " $$%%$$$%$$$$$# ", " #$%$%$$%$$$$$$ ", " $$%$$%$%$$$$$# ", " #$$$$$$$$$$$$$ ", " $$%$$%$$%%$$$# ", " #$%%$%$%$$%$$$ ", " $$%$%%$%$$%$$# ", " #$%$$%$%$$%$$$ ", " $$%$$%$$%%$$$# ", " #$#$#$#$#$#$#$ ", " ", " "}; NightXPM="16 16 5 1", " c None", "! c #000000", "# c #FFFF00", "$ c #1F1F1F", "% c #9B0000", " ", " #$#$#$#$#$#$#$ ", " $$%$$%$%$$$$$# ", " #$%$%$$$$$$$$$ ", " $$%%$$$%$$$$$# ", " #$%$%$$%$$$$$$ ", " $$%$$%$%$$$$$# ", " #$$$$$$$$$$$$$ ", " $$%$$%$$%%$$$# ", " #$%%$%$%$$%$$$ ", " $$%$%%$%$$%$$# ", " #$%$$%$%$$%$$$ ", " $$%$$%$$%%$$$# ", " #$#$#$#$#$#$#$ ", " ", " "}; [end] [_point] Type=6 ;SubType=3 string1=4,MIASTO dayxpm=" 16 16 3 2", " c none", "** c #000000", "OO c #FF0020", "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", " ** ", " ", " ****** ** ****** ** **", "** ** ** ** ** ", "** ** ** ** ", "** ** ** ** ", "** ** ** ** ", "** ** ** ** ", " ****** ** ** ** ", " ", "**** ** ** ** ", "** ** ** ** ** ** ", "** ** ****** ** ", "**** ** ** ** ", " ", nightxpm=" 16 16 3 2", " c #000000", "** c #ffff55", "OO c #20FF00", "OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO", " ** ", " ", " ****** ** ****** ** **", "** ** ** ** ** ", "** ** ** ** ", "** ** ** ** ", "** ** ** ** ", "** ** ** ** ", " ****** ** ** ** ", " ", "** ** ** **** ** ** ******", "****** ** ** ** ** ** ", "** ** ** ** ** ****** ** ", "** ** ** **** ** ** ** ", " ", [end] [_point] Type=0x2e SubType=0x05 String1=4,APTEKA DayXpm="16 16 6 1", " c None", "! c #000000", "# c #0055F0", "$ c #FF4848", "% c #FF2424", "& c #FF0000", " ####### ", " #$$$%%# ", " #$$%%&# ", " #$%%&&# ", " #####%%&&&#####", " #$$$%%&&&&&&&&#", " #$$%%&&&&&&&&&#", " #$%%&&&&&&&&&&#", " #%%&&&&&&&&&&&#", " #%%&&&&&&&&&&&#", " #%&&&&&&&&&&&&#", " #####&&&&&#####", " #&&&&&# ", " #&&&&&# ", " #&&&&&# ", " ####### "}; [end] [_point] Type=0x2f SubType=0x01 String1=4,PALIWO String1=0x15,PALIWO DAYXPM="16 16 4 1", " c None", "! c #000000", "# c #BA0000", "$ c #FFFF00", " ", " !!!!!!!!!!!!! ", " !! !!# ", " !! !!##", " !! !!##", " !! !!##", " !! !! #", " !!!!!!!!!!!!! #", " !!$!$$!!$!!$! !", " !$!!$!$!$$!$!!!", " !$!!$$!!$!$$!! ", " !$!!$!!!$!!$!! ", " !!$!$!!!$!!$!! ", " !!!!!!!!!!!!!! ", " !!!!!!!!!!!!! ", " "}; [end] [_point] Type=0x2f SubType=0x0b String1=4,PARKING String1=0x15,PARKING DAYXPM="16 16 4 1", " c None", "! c #000000", "# c #00329B", "$ c #00009B", " ", " ####### ", " $$###### ", " $!!!!!### ", " $! !## ", " $! !## ", " $! !$# ", " $!!!!!$$# ", " $!$$$$$$# ", " $!$$$$$$ ", " $!$ ", " $!$ ", " $!$ ", " $!$ ", " $$$ ", " "}; [end] [_point] Type=0x4d SubType=0x00 String1=4,PARKING String1=0x15,PARKING DAYXPM="16 16 4 1", " c None", "! c #000000", "# c #00329B", "$ c #00009B", " ", " ####### ", " $$###### ", " $!!!!!### ", " $! !## ", " $! !## ", " $! !$# ", " $!!!!!$$# ", " $!$$$$$$# ", " $!$$$$$$ ", " $!$ ", " $!$ ", " $!$ ", " $!$ ", " $$$ ", " "}; [end] [_point] Type=0x4b SubType=0x00 String1=4,PRZYCHODNIA String1=0x15,PRZYCHODNIA DAYXPM="16 16 7 1", " c None", "! c #000000", "# c #A6CAF0", "$ c #BA0000", "% c #454545", "& c #D90000", "' c #2C2C2C", " # ", " # $$ ", " % $$ ", " % $$$$$$ ", " % $$$$$$ ", " %%% $$ ", " %%& $$ ", " %%% ", " %%& ", " %%% ", " %'& ", " %'% ", " %'& ", " %'% ", " %'% ", " ''''' "}; [end] [_line] Type=1 LineWidth=2 BorderWidth=2 xpm="0 0 4 0" "1 c #f8ffff" "2 c #800000" "3 c #f80000" "4 c #c80000" string1=4,AUTOSTRADA string2=0x15,AUTOSTRADA [end] [_line] Type=3 LineWidth=2 BorderWidth=1 xpm="0 0 4 0" "1 c #f8ffff" "2 c none" "3 c #f80000" "4 c none" string1=4,DROGA EKSPRESOWA string2=0x15,DROGA EKSPRESOWA [end] [_line] Type=7 Xpm="32 1 2 1" "# c #000000" " c #fffff0" "### ############### ############" string1=4,ALEJKA string2=0x15,ALEJKA [end] [_line] Type=0x0a Xpm="32 1 4 1" "# c #505070" " c none" "3 c #202030" "4 c none" "### ## ## ## ## ### ## #### ### " string1=4,DROGA GRUNTOWA string2=0x15,DROGA GRUNTOWA [end]