Changes between Version 6 and Version 7 of Styles/IconTester
- Timestamp:
- 2020-07-21T16:55:07+02:00 (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Styles/IconTester
v6 v7 18 18 - If you want to test png icons use the key "iconpng". However note that new icons in the JOSM core must be svg. 19 19 - 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.) 20 21 21 22 More information about new icons see [wikitr:/DevelopersGuide/DefaultPresets]. … … 27 28 meta { 28 29 title: "Icon tester"; 29 version: "1. 0.[[revision]]_[[date]]";30 version: "1.1.[[revision]]_[[date]]"; 30 31 description: "Helps to test new JOSM icons."; 31 32 icon: "apply.svg"; … … 43 44 } 44 45 46 node[width] { 47 icon-width: tag(width); 48 } 49 50 node[height] { 51 icon-height: tag(height); 52 } 53 45 54 }}}