Opened 13 years ago

Last modified 12 years ago

#8071 closed enhancement

mapcss concat() and cond() — at Version 1

Reported by: Polyglot Owned by: team
Priority: normal Milestone: 14.01
Component: Core Version:
Keywords: mapcss support Cc:

Description (last modified by Polyglot)

This works:

text: rcn_ref;
or:
text: tag(rcn_ref);

When the name tag is present, this also works:

text: concat(tag(rcn_ref), " ", tag(name));

Without a name tag, no text is shown, though.

So I tried this:

text: name?rcn_ref:concat(tag(rcn_ref), " ", tag(name));

and this:

text: cond(name,rcn_ref,concat(tag(rcn_ref), " ", tag(name)));

Would it be possible to simply add a blank string in concat() if the tag is not available.

That would be the most intuitive.

Polyglot

Change History (1)

comment:1 by Polyglot, 13 years ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.