displaying roads of class “H"

Started by Vyacheslav Rotko, December 11, 2023, 12:39:54

0 Members and 1 Guest are viewing this topic.

Vyacheslav Rotko

I want to write a theme for displaying roads of class "H".
For example:
Н9574 (https://www.openstreetmap.org/way/329708414)
Н9579 (https://www.openstreetmap.org/way/126577604)
...

The rule for displaying any "ref" key works:
<rule e="way" k="ref" v="*">
   <rule e="way" k="highway" v="tertiary|unclassified">
      <line stroke="#00d900" stroke-width="1.8" stroke-linecap="butt" />
   </rule>
</rule>

If I write <rule e="way" k="ref" v="H*">, then it won't work.

How do I write a rule for displaying roads where the value "ref" starts with the letter H?

  •  

voldapet

this is more question on Mapsforge team https://github.com/mapsforge/mapsforge. Anyway, as I know, it's impossible to write a rule the way you intend. The wildcard '*' can be used to "replace" an entire key or value. It cannot be used as a wildcard for part of a key or value

Thanks,
Petr