
Hi, I've recently compiled a map for Morroco. And found that I don't have the road number for some roads showing up. This is because I do not include the ref tag in the name. How can I create a logic in the style so that it shows the REF tag if there is no road name but if there is a road name can the name be displayed instead? Thank you!

Hi Joao The default style has logic at the end of the "lines" file to use road numbers (ref) in various highway-symbol shields and also to use the multiple name facility to then allow specification of the name and other references for searching. If you don't want this then the logic could be adapted to just do the ref first as a simple name, then the real name with an addlabel Ticker On Mon, 2024-03-18 at 09:16 +1100, Joao Almeida wrote:
Hi,
I've recently compiled a map for Morroco. And found that I don't have the road number for some roads showing up. This is because I do not include the ref tag in the name. How can I create a logic in the style so that it shows the REF tag if there is no road name but if there is a road name can the name be displayed instead?
Thank you! _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Got it... I'll do some investigation... thank you. Joao On 18/03/2024 9:41 pm, Ticker Berkin wrote:
Hi Joao
The default style has logic at the end of the "lines" file to use road numbers (ref) in various highway-symbol shields and also to use the multiple name facility to then allow specification of the name and other references for searching.
If you don't want this then the logic could be adapted to just do the ref first as a simple name, then the real name with an addlabel
Ticker
On Mon, 2024-03-18 at 09:16 +1100, Joao Almeida wrote:
Hi,
I've recently compiled a map for Morroco. And found that I don't have the road number for some roads showing up. This is because I do not include the ref tag in the name. How can I create a logic in the style so that it shows the REF tag if there is no road name but if there is a road name can the name be displayed instead?
Thank you! _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
participants (2)
-
Joao Almeida
-
Ticker Berkin