logo separator

[mkgmap-dev] "Fuel" POI label corrupted

From Charlie Ferrero charlie at cferrero.net on Thu Oct 14 09:06:36 BST 2010

Lambertus wrote:
> On 2010-10-14 06:10, Charlie Ferrero wrote:
>> Peter Hendricks wrote:
>>> Hi all,
>>>
>>> I would like to report what looks like a style sheet problem. I'm using
>>> Lambertus' Garmin map from http://garmin.na1400.info/routable.php. This
>>> node http://www.openstreetmap.org/browse/node/418611927 shows up on the
>>> Garmin map with label "ptth: Ptt". The default style sheet is used, so I
>>> am told.
>>>
> Yes, I'm using the default stylesheet.
> 
>  > It looks like the POI is being labelled "operator: name:en" where
>  > operator is being transliterated from the Thai (?) script.  This is
>  > expected behaviour from mkgmap if Lambertus is using the default style
>  > combined with mkgmap's --name-tag-list option (i.e.
>  > --name-tag-list=name:en, name).
>  >
> I'm using the follow Mkgmap option:
> --name-tag-list=name:en,int_name,name:zh_py,name:engels,name
> Where name:engels is the transliterated name.
> 
> I had no idea that the name-tag option interacts with the stylesheet. 

Yes: name-tag-list defines the precise name tag to use for a given 
object and so interacts with any style rules that match that object and 
also use the name tag for labelling purposes.

> Does this mean that I need to have an adapted stylesheet because of the 
> name-tag-list? Any other options?

There's no easy answer if you're making a global map that has to have 
some sort of consistency.  This is the first time that I've seen an 
operator:en tag and there's no way to account for it using 
--name-tag-list.  The only way to fix it is to use a modified style rule 
that uses operator:en in preference for operator.  This could be a 
change to the mkgmap default style, but if you do it for fuel you'd 
really have to do it for all rules to avoid a special case.

Preferable would be for the --name-tag-list code to be made more generic 
so that it applies to any tags, not just name.

>> Unfortunately, as I understand it Lambertus is keen to stick with the
>> default style.
>>
> Correct, it seems to me that maintaining a stylesheet takes quite some 
> time, time which is a scarce commodity. Creating my own stylesheet is 
> just very low on my priority list.
> 
> That said, if anyone knows of a good public *generic* stylesheet that is 
> maintained or actively developed and is better then the default 
> stylesheet then I will consider to switch.
I think the default one is probably the best generic stylesheet out 
there that doesn't require a TYP file.
> 
> I know there are some specialist stylesheets around (e.g. for MTB of 
> cycling) but I'm not aware of a generic stylesheet other then the Mkgmap 
> default.



More information about the mkgmap-dev mailing list