Changes between Initial Version and Version 1 of Ticket #18679, comment 1


Ignore:
Timestamp:
2020-02-05T22:23:48+01:00 (5 years ago)
Author:
simon04

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18679, comment 1

    initial v1  
    1 Replying to [ticket:18679 simon04]:
    2 > In order to make `incline=42%` and `maxspeed=42 mph` work, we have to somehow extract the numeric value from those tags.
    3 >
    4 > I propose the following procedure given in pseudocode for a primitive `osm` and `value` (`42%`) for `key` (`incline`):
    5 > {{{
    6 > #!java
    7 > intValue = rule.valueExtractor(value) || rule.extractDefaultValues(osm)
    8 > filter = filter(key, intValue)
    9 > label = rule.valueFormatter(intValue)
    10 > button = button(label)
    11 > }}}
    12 
    131The patch is not yet finished; of course, the unit tests need to be adapted/extended.