logo separator

[mkgmap-dev] Re: name in style file

From Toby Speight T.M.Speight.90 at cantab.net on Sat Jun 27 18:29:42 BST 2009

0> In article <4A464D60.6090707 at free.fr>,
0> frmas <URL:mailto:frmas at free.fr> ("Frmas") wrote:

Frmas> I use the following line in my points style file :
Frmas> natural=peak   {name '${name}'} [0x661d resolution 20]
Frmas>
Frmas> I have the appropriate 0x661d icon in my .TYP file.
Frmas>
Frmas> The icon is well displayed on my Garmin, but not the name of the
Frmas> peak.

Works for me on my ETrex (though I use the builtin TYP of 0x6616).
Have you double-checked that your TYP file has the appropriate label
attributes?  Do you get the name when you select the peak on the
device?


Frmas> Second question : Is it possible to have the elevation displayed
Frmas> on the map too ? What do I have to write in my points file to
Frmas> succeed ?  Something like :
Frmas>
Frmas> natural=peak  { name '${name} ${ele}' | '${name}' | '${ele}' }
Frmas> [0x661d resolution 20]

Find the patch I submitted a couple of months ago (in the list archive - I
think it's called the "highway symbols" patch); with that patch applied,
then my 'points' style looks like

/--------
| natural=peak {name '${name|def:}${ele|height:m=>ft|def:}' } [0x6616 resolution 18]
\--------

Without the patch, then what you have written is the next best thing
(but won't take account of changing the height units in your device's
settings).



More information about the mkgmap-dev mailing list