mapcss concat() and cond()
|Reported by:||Polyglot||Owned by:||team|
Description (last modified by Polyglot)
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));
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.
cond() doesn't work as I would expect it either.
Change History (7)
comment:4 Changed 7 months ago by Polyglot
- Resolution set to fixed
- Status changed from new to closed
comment:5 Changed 7 months ago by bastiK
- Resolution fixed deleted
- Status changed from closed to reopened