Changes between Initial Version and Version 1 of Ticket #22822, comment 12


Ignore:
Timestamp:
2023-03-20T16:05:49+01:00 (3 years ago)
Author:
gaben

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22822, comment 12

    initial v1  
    11Looks like [wiki:Help/Validator/MapCSSTagChecker MapCSSTagChecker] could benefit from more detailed descriptions. Looking through existing rules ([source:/trunk/resources/data/validator/]), especially [source:/trunk/resources/data/validator/numeric.mapcss numeric.mapcss] in your case, might help.
    2 Basically, I comes down to overwriting the tag with `fixAdd:` using [wiki:Help/Styles/MapCSSImplementation#Evalexpressions eval expressions]. Be aware of the java docs for [/doc/org/openstreetmap/josm/gui/mappaint/mapcss/Functions.htm MapCSS funtions] and [https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html#sum regular expressions].
     2Basically, I comes down to overwriting the tag with `fixAdd:` using [wiki:Help/Styles/MapCSSImplementation#Evalexpressions eval expressions]. Be aware of the java docs for [/doc/org/openstreetmap/josm/gui/mappaint/mapcss/Functions.html MapCSS functions] and [https://docs.oracle.com/javase/8/docs/api/java/util/regex/Pattern.html#sum regular expressions].
    33
    44For the two easy examples the `replace` function should work, e.g.: