[josm-dev] MapCSS magic needed
Paul Hartmann
phaaurlt at googlemail.com
Fri Feb 8 21:16:44 GMT 2013
On 02/07/2013 02:46 PM, Martin Vonwald wrote:
> Hi!
>
> I'm in need of some magic for a JOSM style. Any hints regarding the following?
> * I have a tag "key=a:b". I need to retrieve b.
> * I have a tag "key=a,b,c,d". The value is comma-separated and I need
> to retrieve the x-th value.
>
> Any ideas?
This isn't possible so far. However, it sounds quite useful, so I have
added a few new functions that should do the job:
* split
* get
* regexp_test and regexp_match
See documentation:
<http://josm.openstreetmap.de/wiki/Help/Styles/MapCSSImplementation#Evalexpressions>
Paul
More information about the josm-dev
mailing list