Hi Joris,

yes, the highway shields are special characters and the open question is why 
Garmin software displays it as blank.

Gerd

________________________________________
Von: mkgmap-dev <[email protected]> im Auftrag von Joris 
Bo <[email protected]>
Gesendet: Freitag, 22. Mai 2020 21:13
An: Development list for mkgmap
Betreff: Re: [mkgmap-dev] Extra leading character after assiging highway        
shield

Hi

In addition to my previous mail,
I think I found the answer myself, when removing the character from the 
mkgmap:label:1 value (it was )
my highwayshield is gone as well 😊
I guess its just the way things are ‘solved’ by garmin and I better leave it 
that way?

Kind regards,
Joris


Van: mkgmap-dev <[email protected]> Namens Joris Bo
Verzonden: vrijdag 22 mei 2020 20:52
Aan: Development list for mkgmap <[email protected]>
Onderwerp: [mkgmap-dev] Extra leading character after assiging highway shield


Hi,



For a long time I  have seen a leading (space like?) character in front of $Ref 
which is not there in the osm source.

Today I have been chasing the thing trying to finally solve my style-bug, but 
now I get stuck thinking it looks like the highwayshield assignment is adding 
it.

I studied the manuals around the addlabel command and the mkgmap:label:1 fields 
but I’m not sure if it is a known side effect

I think I can easily fix it after the assignment.



I switched to the default style and find the same behavior.

[cid:[email protected]]



In the finalize section of lines the highway shields are calculated

The yellow stuf is my debug comment, the green stuf is the default style, the 
blue stuf is the echotags result



#--------- DEBUG

highway = * {set jba1 = '$(mkgmap:label:1)' ; set jba2 = '$(mkgmap:label:2)' ; 
set jba3 = '$(ref)'  ; set jba4 = '$(name)' }

#------------------
              Jba1=empty                        = mkgmap:label:1
             Jba2=empty                        = mkgmap:label:2
jba3=N184                          = $ref
jba3=Luitenant Lippenslaan   = $name




# Display highway shield for mayor roads if they have a ref and make them 
searchable by their name

(highway=motorway | highway=trunk)     & ref=* {name 
'${ref|highway-symbol:hbox}'; addlabel '${name}'}

highway=primary                        & ref=* {name 
'${ref|highway-symbol:box}' ; addlabel '${name}'}

(highway=secondary | highway=tertiary) & ref=* {name 
'${ref|highway-symbol:oval}'; addlabel '${name}'}



#--------- DEBUG

highway = * {set jbb1 = '$(mkgmap:label:1)' ; set jbb2 = '$(mkgmap:label:2)' ; 
set jbb3 = '$(ref)'  ; set jbb4 = '$(name)' }

#------------------

            I pasted a picture because it visualize the hidden character 
suddenly appear in front of mkgmap:label:1

            [cid:[email protected]]

name=* {name '${name}'}

highway=* & ref=* & highway!=motorway & highway!=trunk & highway!=primary & 
highway!=secondary & highway!=tertiary

    {addlabel '${ref}'}



highway = * & osmid() = 272407046 {echotags 'looking for prefix'}






_______________________________________________
mkgmap-dev mailing list
[email protected]
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Reply via email to