Custom style XMLs - constant declaration ?

Help
2012-07-25
2013-05-29
  • Libor Striz
    Libor Striz
    2012-07-25

    I am a fresh green newbie in XML……

    Is possible in Custom style XML to use any kind of constant declaration ?

    E.g. if I would want to tweak some zoom levels for chosen groups of tags, not to modify the value on dozens of places.

     
  • sk750
    sk750
    2012-07-26

    If there isn't you could use something like http://fart-it.sourceforge.net/ to replace strings in the style-file before using it with Osm2GpsMid.

     
  • Libor Striz
    Libor Striz
    2012-07-26

    Until now I have not found a way.  I will stick to solution i am familiar with.

    NoteTab light Text editor with capable macro language and PCRE regular expressions.
    There i can write a script e.g. for removing or modifying of given list of style items, whatever change is done to style-file.

    It also would apply to tweaking of  bike speed for various "highways", unless some bicycle profiles are implemented.

    The same could be done in javascript based regex of local html file.