There is something wrong with an element in my .typ file

I use a .typ file of my own creation to override the default line styles in OSM data loaded on My Legend HCx. Everything displays correctly apart from this element:
[_line]
Garmin definition: Political boundary
Mkgmap definition: Administrative boundary/admin level less than 9 and less than 7
My definition: British National Grid 1 kilometre
Colour: blue
Type=0x1c
XPM=“32 1 2 1”
“. c #00ccff
“X c none”
“.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X”
[end]

Daytime and nighttime colours should be the same - blue. The daytime colour displays correctly, but the nighttime colour displays as white instead of blue. Can anyone suggest why?

Try this:
[_line]
Type=0x1c
UseOrientation=N
Xpm=“32 1 2 1”
“! c #00CCFF
" c none"
"! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! "
;12345678901234567890123456789012
ExtendedLabels=N
[end]
Suggest that you use Typviewer for easier TYP file editing.

Charlie,

My thanks for your prompt response. I copied and pasted your suggested section into my .txt file in place of what was there, made a new .typ file and opened it in the Garmin TYP Editor at http://ati.land.cz/gps/typdecomp/editor.cgi. It still shows the nighttime colour as white. I haven’t uploaded data to my GPSr yet to confirm that, but in previous uploads, what the editor shows is replicated in it. Decompiling the .typ file shows the second line as white.

For the record, I have overcome the issue by entering two additional lines to represent nighttime:
[_line]
Garmin definition: Political boundary
Mkgmap definition: Administrative boundary/admin level less than 9 and less than 7
My definition: British National Grid 1 kilometre
Colour: blue
Type=0x1c
XPM=“32 1 4 1”
“. c #00ccff
“X c none”
“3 c #00ccff
“4 c none”
“.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X.X”
[end]

You need to be aware of two types of polylines,those with bmp and those without.

Judging from your example, you seem to be dealing with bmp polylines:

XPM=“32 1 2 1”
“. c #00ccff
“X c none”

This only allows for 2 day colours; it does what it says on the tin.

try

XPM=“32 1 4 1”
“0 c #00ccff
“1 c none”
“2 c #00ccff
“3 c none”
“01010101010101010101010101010101”

Or alternatively turn it into a type 7 non-bmp polyline:
lineWidth=1
XPM=“0 0 2 0”
“0 c #00ccff
“1 c #00ccff

for more info see my typformat manual http://www.pinns.co.uk/osm/typformat.html