[mkgmap-dev] mkgmap:label
From WanMil wmgcnfg at web.de on Sun Apr 27 10:33:20 BST 2014
Hi enrico, > Hi, in the lines rules I have this: > > <finalize> > highway=* & name=* {set name_orig='${name}'} > > highway=* & route_type ~ '.*hiking.*' {name > '${route_ref1|highway-symbol:oval} ${route_name|not-equal:route_ref1} > [${name|not-equal:route_name}]' | '${route_ref1|highway-symbol:oval} > ${route_name|not-equal:route_ref1}' | '${route_ref1|highway-symbol:oval}' | > '${ref|highway-symbol:oval} ${route_name}' | '${route_name} > [${name|not-equal:route_name}]' | '${route_name}' } > > name_orig=* {set mkgmap:label:3='${name_orig}'} > > name=* {name '${name}'} > > With the first line I preserve the name of the way and with the second line > I set the tag name with the relation information. No you don't. Please have a look at the documentation. The action "name" is a shortcut for add mkgmap:label:1. So you add the tag mkgmap:label:1. The name tag is unchanged. > With the third line I would add the name_orig always like the second label > but sometimes I see first and sometimes I see like second line... I don't > understand why. To be precise you set the third label (mkgmap:label:3). As long as the second label (mkgmap:label:2) is not set this will be changed to the second label. The fourth line is executed only if the first label mkgmap:label:1 is not already set because it is a shortcut for: name=* { add mkgmap:label:1 '${name}' } > > <http://gis.19327.n5.nabble.com/file/n5804224/Immagine1.jpg> > > <http://gis.19327.n5.nabble.com/file/n5804224/Immagine2.jpg> > > How can I set the second label always a the same position? > Thanks very much. As Thorsten already mentioned it depends on the device which labels are displayed. WanMil > --enrico > > > > -- > View this message in context: http://gis.19327.n5.nabble.com/mkgmap-label-tp5804224.html > Sent from the Mkgmap Development mailing list archive at Nabble.com. > _______________________________________________ > mkgmap-dev mailing list > mkgmap-dev at lists.mkgmap.org.uk > http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev >
- Previous message: [mkgmap-dev] mkgmap:label
- Next message: [mkgmap-dev] mkgmap:label
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list