Can you set background colour in a TYP file?

Hi, Just playing around with TYP files and wondered if it is possible to change the "Garmin yellow" background to anything else using a TYP file? If not, is there any other way of doing that? Cheers, Mark

yes, simply set background polygon 0x4b to a color (if using maptk watch out to set one pixel to something else, because usually if you go for a single color only maptk will put second color transparent and performance sucks, this is a bug in maptk, the online typfile editor is fine in this regard). I like white (best contrast). Black would be good only for maps used primarily at night, because you might save battery power, but readability is in my eyes still better with white. Mark Burton wrote:
Hi,
Just playing around with TYP files and wondered if it is possible to change the "Garmin yellow" background to anything else using a TYP file?
If not, is there any other way of doing that?
Cheers,
Mark _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Felix,
yes, simply set background polygon 0x4b to a color (if using maptk watch out to set one pixel to something else, because usually if you go for a single color only maptk will put second color transparent and performance sucks, this is a bug in maptk, the online typfile editor is fine in this regard). I like white (best contrast). Black would be good only for maps used primarily at night, because you might save battery power, but readability is in my eyes still better with white.
Thanks for the quick response. I tried doing that using http://ati.land.cz/gps/typdecomp/editor.cgi but it doesn't make any difference. What drawing level and color mode should I be using? The other stuff in the TYP file (all line defs) appears to work fine. Cheers, Mark

Strange, try to look in gpsmapedit what polygon is used for background. Have you patched it to 0x4a, i have seen some people doing that (though I don't know what for)? drawing level 0, and make sure no other is on 0 or it might be displayed behind the background. Color mode, no clue. I usually use maptk. Are you sure that the typfile really got transferred to gps? Are you sure you set 0x4b as polygon to white (line 0x4b or poi 0x4b will of course not work). Set a really strange color for say residential streets and look if it really changes on gps (if it only appears to work....). Transparency is NOT set? If map is set as transparent strange results might happen with 0x4b defined. Mark Burton wrote:
Hi Felix,
yes, simply set background polygon 0x4b to a color (if using maptk watch out to set one pixel to something else, because usually if you go for a single color only maptk will put second color transparent and performance sucks, this is a bug in maptk, the online typfile editor is fine in this regard). I like white (best contrast). Black would be good only for maps used primarily at night, because you might save battery power, but readability is in my eyes still better with white.
Thanks for the quick response.
I tried doing that using http://ati.land.cz/gps/typdecomp/editor.cgi but it doesn't make any difference. What drawing level and color mode should I be using?
The other stuff in the TYP file (all line defs) appears to work fine.
Cheers,
Mark _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Felix.
Strange, try to look in gpsmapedit what polygon is used for background. Have you patched it to 0x4a, i have seen some people doing that (though I don't know what for)?
No, it's still 0x4b.
drawing level 0, and make sure no other is on 0 or it might be displayed behind the background. Color mode, no clue. I usually use maptk.
OK
Are you sure that the typfile really got transferred to gps? Are you sure you set 0x4b as polygon to white (line 0x4b or poi 0x4b will of course not work).
Yes, I can change lines and polygons (lakes, etc.) and the changes show up.
Set a really strange color for say residential streets and look if it really changes on gps (if it only appears to work....).
Yes it does.
Transparency is NOT set? If map is set as transparent strange results might happen with 0x4b defined.
No transparency. Can you please email me a TYP file that sets the background to white so I can see what the difference is? Cheers, Mark PS - are you using the extended types in your mtb maps?

Mark Burton wrote:
Hi Felix.
Strange, try to look in gpsmapedit what polygon is used for background. Have you patched it to 0x4a, i have seen some people doing that (though I don't know what for)?
No, it's still 0x4b.
drawing level 0, and make sure no other is on 0 or it might be displayed behind the background. Color mode, no clue. I usually use maptk.
OK
Are you sure that the typfile really got transferred to gps? Are you sure you set 0x4b as polygon to white (line 0x4b or poi 0x4b will of course not work).
Yes, I can change lines and polygons (lakes, etc.) and the changes show up.
Set a really strange color for say residential streets and look if it really changes on gps (if it only appears to work....).
Yes it does.
Transparency is NOT set? If map is set as transparent strange results might happen with 0x4b defined.
No transparency.
Can you please email me a TYP file that sets the background to white so I can see what the difference is?
You can simply download a small country from my website, both thin??.TYP and white??.TYP have white background set. http:///openmtbmap.org/download and try it out and look for differences. -- oh yeah, when zooming far out yellow kicks in.....
Cheers,
Mark
PS - are you using the extended types in your mtb maps? _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Felix,
You can simply download a small country from my website, both thin??.TYP and white??.TYP have white background set.
http:///openmtbmap.org/download
and try it out and look for differences.
Err, I can't read that archive format, please just email me a TYP file. Cheers, Mark

Felix Hartmann wrote:
yes, simply set background polygon 0x4b to a color (if using maptk watch out to set one pixel to something else, because usually if you go for a single color only maptk will put second color transparent and performance sucks, this is a bug in maptk, the online typfile editor is fine in this regard). I like white (best contrast).
That's what I do but when I zoom out to 2 km or more the white background disappears. Do you know of a way to change that?

Ralf Kleineisel wrote:
Felix Hartmann wrote:
yes, simply set background polygon 0x4b to a color (if using maptk watch out to set one pixel to something else, because usually if you go for a single color only maptk will put second color transparent and performance sucks, this is a bug in maptk, the online typfile editor is fine in this regard). I like white (best contrast).
That's what I do but when I zoom out to 2 km or more the white background disappears. Do you know of a way to change that?
No, maybe you could check if your last shown polygon disappears at the same level as set in polygons style-file (is it 2km Mapsource or GPS, I assume GPS?) Maybe putting a polygon into resolution=16 (i.e. take water=yes & name=Bodensee (if rendering Germany)) and see if that helps. Report back if you can see any way to change the behaviour (other than changing mapdetail in gps to more/most)
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

I've had zero success in setting the background colour on the etrex. I can happily change styles of lines and polygons so the type file is working to a degree. Has anyone managed to change the background colour on an etrex vista hcx? Thanks

Mark Burton wrote:
I've had zero success in setting the background colour on the etrex. I can happily change styles of lines and polygons so the type file is working to a degree.
Has anyone managed to change the background colour on an etrex vista hcx?
that's exactly the unit I'm using: Have you tried a master reset on the vista hcx? maybe you switched of showing polygons (that's possible via one of the sub-menus)? I have attached you a supersmall map as gmapsupp.img, is it also yellow? (please zoom in to closer than 2km). Simply unpack and put into /garmin. (it's Monaco). this gmapsupp.img is well showing white background on my vista hcx
Thanks _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Felix,
Have you tried a master reset on the vista hcx? maybe you switched of showing polygons (that's possible via one of the sub-menus)?
Is it possible?
I have attached you a supersmall map as gmapsupp.img, is it also yellow? (please zoom in to closer than 2km). Simply unpack and put into /garmin. (it's Monaco). this gmapsupp.img is well showing white background on my vista hcx
Yes, it's bloody well yellow! My etrex has SW 2.70. Nice map, by the way. Are you using the extended types now? If so, working OK? Thanks for the help. Mark

Mark Burton wrote:
Hi Felix,
Have you tried a master reset on the vista hcx? maybe you switched of showing polygons (that's possible via one of the sub-menus)?
Is it possible?
Yes, While switching on hold/press both the joystick and the page button Notice all personal settings will be lost. (also I would recommend upgrading to newest software/firmware version of the Vista but that should not matter, however if you force downgrade the firmware you effectively perform a master reset too)
I have attached you a supersmall map as gmapsupp.img, is it also yellow? (please zoom in to closer than 2km). Simply unpack and put into /garmin. (it's Monaco). this gmapsupp.img is well showing white background on my vista hcx
Yes, it's bloody well yellow!
My etrex has SW 2.70.
Nice map, by the way.
Are you using the extended types now? If so, working OK?
Yeah, working alright. Only using them for lines right now (and already again approaching no more free lines in Mapsource.... I think I got around 30 left only) BTW, I just discovered that geofrabrik now offers alps as region. Just building it...
Thanks for the help.
Mark _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Ralf Kleineisel wrote:
Mark Burton wrote:
Has anyone managed to change the background colour on an etrex vista hcx?
My TYP works on my eTrex Legend HCx which is very similar. I've got it to work on a Legend HCx except it I zoom a very long way out when it reverts to yellow.
However, I seem to recall that when I first played around with this the background reverted to yellow quite early on as I zoomed out. In the end this problem went away when I reduced the number of levels in my style file - originally I was using the default style which seemed to create a lot of levels (if you combined what was in the options file and extra resolutions specified in the lines/points files). Whether this was connected in any way I don't know.

Hi Mark,
However, I seem to recall that when I first played around with this the background reverted to yellow quite early on as I zoomed out. In the end this problem went away when I reduced the number of levels in my style file - originally I was using the default style which seemed to create a lot of levels (if you combined what was in the options file and extra resolutions specified in the lines/points files). Whether this was connected in any way I don't know.
That's interesting, what levels are you using now? Cheers, Mark

Mark Burton wrote:
Hi Mark,
However, I seem to recall that when I first played around with this the background reverted to yellow quite early on as I zoomed out. In the end this problem went away when I reduced the number of levels in my style file - originally I was using the default style which seemed to create a lot of levels (if you combined what was in the options file and extra resolutions specified in the lines/points files). Whether this was connected in any way I don't know.
That's interesting, what levels are you using now?
Cheers,
Mark This is what I have at the moment:
levels = 0:24, 1:22, 2:21, 3:20, 4:19, 5:18, 6:16, 7:12 I also (try) to make sure that only these resolutions are used in the lines and points file. I seem to recall that the mkgmap default style at the time (about 3 months ago) used some resolutions that weren't defined in options file. I guessed that maybe extra levels were being created inside mkgmap, which caused the total number of levels to exceed the maximum a map file can cope with and that maybe this caused the background to disappear as I zoomed out. This was about 3 months ago and I have no idea if the two issues were truely connected.

Mark Burton wrote:
Hi,
Just playing around with TYP files and wondered if it is possible to change the "Garmin yellow" background to anything else using a TYP file?
If not, is there any other way of doing that?
Cheers,
Mark Hi Mark,
Did you ever get to the bottom of this? I have also had zero success in getting a white background. I've tried setting both 0x4b and 0x4a polygons to white and neither has an effect. -- Charlie

On 31/10/2009, at 10.40, Charlie Ferrero wrote:
Did you ever get to the bottom of this? I have also had zero success in getting a white background. I've tried setting both 0x4b and 0x4a polygons to white and neither has an effect.
Me too. I thought I was just being stupid as usual... :-) -- Morten

Hi! Charlie Ferrero schrieb:
Did you ever get to the bottom of this? I have also had zero success in getting a white background. I've tried setting both 0x4b and 0x4a polygons to white and neither has an effect.
You cannot change the color of the Background - it appears to be hardcoded into most Garmin units. But: The background is just a large rectangle which is added by mkgmap. If you suppress this yellow rectangle with --transparent and just add a rectangle of your own with a different id, you can set your own custom background. Doing this automatically is a feature of OSM Composer. I gave my hiking map light gray background. bye Nop

Charlie Ferrero wrote:
Did you ever get to the bottom of this? I have also had zero success in getting a white background. I've tried setting both 0x4b and 0x4a polygons to white and neither has an effect.
In the TYP file for my topo map Germany I set 0x4b (Background coverage) and 0x10d01 (Basemap coverage area) to white and it works fine on my eTrex and in mapsource. Both have the lowest drawing level. You can get the typ and the mkgmap style here: http://www.kleineisel.de/blogs/index.php/osmmap/2009/09/17/how-to-make-a-top...

Ralf Kleineisel wrote:
Charlie Ferrero wrote:
Did you ever get to the bottom of this? I have also had zero success in getting a white background. I've tried setting both 0x4b and 0x4a polygons to white and neither has an effect.
In the TYP file for my topo map Germany I set 0x4b (Background coverage) and 0x10d01 (Basemap coverage area) to white and it works fine on my eTrex and in mapsource. Both have the lowest drawing level.
You can get the typ and the mkgmap style here: http://www.kleineisel.de/blogs/index.php/osmmap/2009/09/17/how-to-make-a-top... _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
I also have no problem - well the restriction being that 500m upwards (on medium detail) the white background disappears.

Ralf Kleineisel wrote:
Charlie Ferrero wrote:
Did you ever get to the bottom of this? I have also had zero success in getting a white background. I've tried setting both 0x4b and 0x4a polygons to white and neither has an effect.
In the TYP file for my topo map Germany I set 0x4b (Background coverage) and 0x10d01 (Basemap coverage area) to white and it works fine on my eTrex and in mapsource. Both have the lowest drawing level.
You can get the typ and the mkgmap style here: http://www.kleineisel.de/blogs/index.php/osmmap/2009/09/17/how-to-make-a-top... Thanks Ralf,
Interestingly, using your style file and TYP file results in the "NET 1 offset too large error" that people have been reporting recently. Using my style file and TYP file does not result in an error. -- Charlie
participants (7)
-
Charlie Ferrero
-
Felix Hartmann
-
Mark Burton
-
MarkS
-
Morten Kjeldgaard
-
Nop
-
Ralf Kleineisel