Felix,
  
> Just another thought. Are you using single color or pattern for land?
> Try using a pattern for land (set both colors the same, or for maptk set 
> just one pixel to a different color).
> 
> Using single color instead of pattern, does definitely sometimes lead to 
> problems. Garmin modern tpyfiles use patterns for all polys.

OK - noted.

You will be pleased to know that I have taken your advice and started
looking at using MapTk to generate the typ file.

I can generate a file but, weirdly, mapsource is ignoring my polyline
styles. The couple of POIs I have and the polygons appear to be working
OK, it's just the polylines it is ignoring. The file isn't huge so I
have attached it to this email, please take a quick look at the
polylines in case there is something obvious I am doing wrong.

BTW - I can edit those polyline styles in MapTk and they look just as
they should.

Mark

# Project file

[Project]
Product=OSM Map
FamilyID=909
Version=0
Compile=0
Index=0
Style=1
IMGpath=/home/markb/OSM
[END]

# POIs

[POI]
Type=0x11500
String=4,Lights
Color=1,0x000000
Color=2,0xff0000
Color=3,0xf0bf03
Color=4,0x00ff00
Line=00111100
Line=01122110
Line=11222211
Line=12222221
Line=11222211
Line=11122111
Line=11133111
Line=11333311
Line=13333331
Line=11333311
Line=11133111
Line=11144111
Line=11444411
Line=14444441
Line=11444411
Line=01144110
Line=00111100
[END]

[POI]
Type=0x11501
Color=1,0xebf9f3
Color=2,0x66aed9
Color=3,0x1082c1
Color=4,0x1682c5
Color=5,0xeef9f3
Color=6,0x1f88c8
Color=7,0x0070c7
Color=8,0xe9f3fa
Line=01234200
Line=56777760
Line=27777772
Line=47777774
Line=47777774
Line=27777772
Line=06777760
Line=00234280
[END]

[POI]
Type=0x11502
String=4,Camera
Color=0,0xfdfe02
Color=1,0xf0fd0e
Color=2,0xfdfe04
Color=4,0xfcfe07
Color=6,0xfdfd05
Color=7,0xf0fd0c
Line=000112214100
Line=000000000067
Line=008888000000
Line=008888080000
Line=008888080800
Line=008888080800
Line=008888080800
Line=008888080000
Line=008888000000
Line=000000000000
Line=000000000000
[END]

# Polylines

[Polyline]
Type=0x01
Linewidth=3
Color=0,0x0000ff
[END]

[Polyline]
Type=0x02
Linewidth=3
Color=0,0x00ff00
[END]

[Polyline]
Type=0x03
Linewidth=3
Color=0,0xff0000
[END]

[Polyline]
Type=0x04
Linewidth=2
Color=0,0xff8000
[END]

[Polyline]
Type=0x05
Linewidth=2
Color=0,0x000000
[END]

[Polyline]
Type=0x06
Linewidth=2
Color=0,0x606060
[END]

[Polyline]
Type=0x08
Linewidth=2
Color=0,0x606060
[END]

[Polyline]
Type=0x09
Linewidth=2
Color=0,0x606060
[END]

[Polyline]
Type=0x0b
Linewidth=2
Color=0,0x606060
[END]

[Polyline]
Type=0x0c
Linewidth=2
Color=0,0x606060
[END]

[Polyline]
Type=0x10
Color=0,0x000000
Line=00110011001100110011001100110011
[END]

[Polyline]
Type=0x13
String=0,NPE
Color=0,0x00ff00
Color=1,0xff0000
Line=00000000111111110000000011111111
Line=00000000111111110000000011111111
[END]

[Polyline]
Type=0x14
Color=0,0x000000
Line=01111111011111110111111101111111
Line=00000000000000000000000000000000
Line=01111111011111110111111101111111
[END]

[Polyline]
Type=0x15
Linewidth=1
Color=0,0x0000ff
[END]

[Polyline]
Type=0x16
Color=0,0x008000
Line=00000011000000110000001100000011
[END]

[Polyline]
Type=0x1c
Color=0,0x0000ff
Line=00110011001100110011001100110011
[END]

[Polyline]
Type=0x1d
Color=0,0x00ff00
Line=00110011001100110011001100110011
[END]

[Polyline]
Type=0x27
Linewidth=2
Color=0,0x0080ff
[END]

[Polyline]
Type=0x29
Linewidth=1
Color=0,0x808080
[END]

[Polyline]
Type=0x10107
String=0,Bridge
Color=0,0x804000
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
[END]

[Polyline]
Type=0x10e00
String=0,Tunnel
Color=0,0x000000
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
[END]

# Polygons

[Polygon]
Type=0x02
DrawOrder=3
[END]

[Polygon]
Type=0x04
DrawOrder=3
Color=0,0x404000
Line=01111111111111100111111111111110
Line=10111111111111011011111111111101
Line=11011111111110111101111111111011
Line=11101111111101111110111111110111
Line=11110111111011111111011111101111
Line=11111011110111111111101111011111
Line=11111101101111111111110110111111
Line=11111110011111111111111001111111
Line=11111110011111111111111001111111
Line=11111101101111111111110110111111
Line=11111011110111111111101111011111
Line=11110111111011111111011111101111
Line=11101111111101111110111111110111
Line=11011111111110111101111111111011
Line=10111111111111011011111111111101
Line=01111111111111100111111111111110
Line=01111111111111100111111111111110
Line=10111111111111011011111111111101
Line=11011111111110111101111111111011
Line=11101111111101111110111111110111
Line=11110111111011111111011111101111
Line=11111011110111111111101111011111
Line=11111101101111111111110110111111
Line=11111110011111111111111001111111
Line=11111110011111111111111001111111
Line=11111101101111111111110110111111
Line=11111011110111111111101111011111
Line=11110111111011111111011111101111
Line=11101111111101111110111111110111
Line=11011111111110111101111111111011
Line=10111111111111011011111111111101
Line=01111111111111100111111111111110
[END]

[Polygon]
Type=0x07
DrawOrder=3
Color=0,0xc0c0c0
[END]

[Polygon]
Type=0x0c
DrawOrder=3
Color=0,0xc0c0c0
[END]

[Polygon]
Type=0x13
DrawOrder=4
Color=0,0xa0a0a0
[END]

[Polygon]
Type=0x17
DrawOrder=4
[END]

[Polygon]
Type=0x19
DrawOrder=4
[END]

[Polygon]
Type=0x28
DrawOrder=1
[END]

[Polygon]
Type=0x32
DrawOrder=1
[END]

[Polygon]
Type=0x3c
DrawOrder=4
[END]

[Polygon]
Type=0x3f
DrawOrder=4
[END]

[Polygon]
Type=0x46
DrawOrder=4
[END]

[Polygon]
Type=0x4b
DrawOrder=0
Color=0,0xffffff
[END]

[Polygon]
Type=0x4e
DrawOrder=4
[END]

[Polygon]
Type=0x4f
DrawOrder=4
Color=0,0x004000
Line=01111110011111100111111001111110
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=01111110011111100111111001111110
Line=01111110011111100111111001111110
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=01111110011111100111111001111110
Line=01111110011111100111111001111110
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=01111110011111100111111001111110
Line=01111110011111100111111001111110
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=01111110011111100111111001111110
[END]

[Polygon]
Type=0x50
DrawOrder=4
Color=0,0x40c000
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
[END]

[Polygon]
Type=0x51
DrawOrder=4
Color=0,0x40c0ff
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=11111111111111111111111111111111
Line=00000000000000000000000000000000
[END]

[Polygon]
Type=0x10100
DrawOrder=2
Color=0,0xffffc0
[END]

[Polygon]
Type=0x10300
DrawOrder=3
[END]

[Polygon]
Type=0x10310
DrawOrder=3
[END]

[Polygon]
Type=0x10311
DrawOrder=3
[END]

[Polygon]
Type=0x10f00
DrawOrder=3
String=4,Beach
Color=0,0xffc000
[END]

# Python scripts used by 'Script'

[CUSTOM_HEADER]
# Python script: customizing cities
# variables:    overview     1 overview map
#                            0 detailed map
#               name         name of the tile
#               ident        ident of tile ( 8 character string )
#               familyid     family ID ( 16 bit, read only )
#               drawpriority draw priority of tile ( 1 ... 31 )
#               transparent  1 map is transparent
#                            0 map is not transparent
#               copyright    copyright in MapSource
#               levels       number of levels in map
#               level[]      bit / coord, index is level
#               zoom[]       zoom level
[END]

[CUSTOM_POI]
# Python script: customizing points [RGN10]
# variables:    overview   1 overview map
#                          0 detailed map
#               type       code of object ( 16 bit )
#               levels     number of levels in map
#               level      visibility up to level, -1: remove
#               label      text for object
[END]

[CUSTOM_POLYLINE]
# Python script: customizing polylines [RGN40]
# variables:    overview   1 overview map
#                          0 detailed map
#               type       code of object ( 8 bit )
#               levels     number of levels in map
#               level      visibility up to level, -1: remove
#               label      text for object
[END]

[CUSTOM_POLYGON]
# Python script: customizing polygons [RGN80]
# variables:    overview   1 overview map
#                          0 detailed map
#               type       code of object ( 8 bit )
#               levels     number of levels in map
#               level      visibility level, -1: remove
#               label      text for object
[END]

_______________________________________________
mkgmap-dev mailing list
mkgmap-dev@lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to