Changes between Version 6 and Version 7 of Styles/IconTester


Ignore:
Timestamp:
2020-07-21T16:55:07+02:00 (6 years ago)
Author:
Klumbumbus
Comment:

upgrade to version 1.1, allows to change icon size on the fly

Legend:

Unmodified
Added
Removed
Modified
  • Styles/IconTester

    v6 v7  
    1818- If you want to test png icons use the key "iconpng". However note that new icons in the JOSM core must be svg.
    1919- To test a new version of an icon you must first create the file with a new (not yet used) file name and then retag the node in JOSM. JOSM caches the icon so you cannot just override the file because it will not update within JOSM. So simply use e.g. `tree1.svg`, `tree2.svg`,... as file names and `icon=tree1`, `icon=tree2`,... as tags on nodes in JOSM.
     20- To test different icon sizes add the tag `width` or `height` with the number of pixels as value. (The default value for the mapview in JOSM on non HiDPI screens is 16x16 pixels.)
    2021
    2122More information about new icons see [wikitr:/DevelopersGuide/DefaultPresets].
     
    2728meta {
    2829    title: "Icon tester";
    29     version: "1.0.[[revision]]_[[date]]";
     30    version: "1.1.[[revision]]_[[date]]";
    3031    description: "Helps to test new JOSM icons.";
    3132    icon: "apply.svg";
     
    4344}
    4445
     46node[width] {
     47    icon-width: tag(width);
     48}
     49
     50node[height] {
     51    icon-height: tag(height);
     52}
     53
    4554}}}