Opened 14 years ago

Last modified 10 years ago

#6122 closed enhancement

[PATCH] allow concat function in mapcss expressions — at Initial Version

Reported by: cmuelle8 Owned by: team
Priority: normal Milestone:
Component: Core mappaint Version:
Keywords: Cc:

Description

  • allow concat(Object... args) in mapcss to enable composing freeform labels
  • word split the string in Label Composer
    • if a word is a key for the prop, substitute the value
    • else append the word as is

e.g.

text: eval(concat("smoothness -- ", "surface"));

will render something like "bad -- asphalt" if the tags are set accordingly.

Greetings

cmuelle8

Change History (1)

by cmuelle8, 14 years ago

Attachment: mapcss-concat.patch added
Note: See TracTickets for help on using tickets.