I want to label the numbered roads at all scales with a symbol instead of text. Also, I would like to label the roads using an expression so I could use the symbol corresponding to the road number.
Right now, I can display a symbol in a label, but the text is still visible and all roads use the same symbol. I can't find a way to use expressions in a LABEL.
So how could I dynamically use a symbol as label, without text, according to a field attribute that stores the road number?
Here is how a part of my LAYER section looks like:
LABELITEM "NomRte" CLASS NAME 'Autoroute' EXPRESSION (('[ClsRte]' eq 'Autoroute')and('[CaractRte]' ne 'Bretelle')) LABEL MINDISTANCE 750 STYLE # since to version 6 symbol 'a10' MAXSIZE 24.0 END # STYLE END # end of label STYLE WIDTH 2 COLOR 0 0 0 OUTLINECOLOR 0 0 0 MAXSCALEDENOM 500000 END #STYLE