Changes between Initial Version and Version 1 of Styles/IconTester


Ignore:
Timestamp:
2019-11-18T20:42:15+01:00 (6 years ago)
Author:
Klumbumbus
Comment:

new style

Legend:

Unmodified
Added
Removed
Modified
  • Styles/IconTester

    v1 v1  
     1[[TranslatedPages]]
     2
     3= [[Image(source:trunk/images/apply.svg,36,middle,inline)]] Bench =
     4[[PageOutline(2-9)]]
     5
     6== Description ==
     7
     8The mappaint style "IconTester" helps to test (GUI or mappaint) icons which may be added to JOSM.
     9
     10You can use this mappaint style together with the default JOSM internal mappaint style.
     11
     12For ideas/questions/bugs/suggestions or similar please write a message to [osmwww:user/Klumbumbus Klumbumbus].
     13
     14== Usage ==
     15- Add the path where you store your icons for testing in the preferences at the lower part of the [wikitr:/Help/Preferences/Map#MapPaintStyles Map Settings -> Map Paint Styles] tab at "icons paths:"
     16- Activate this style
     17- Add a node and tag it with "icon" as key and the file name of the icon as value (without extension). It automatically adds .svg as extension.
     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- 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.
     20
     21More information about new icons see [wikitr:/DevelopersGuide/DefaultPresets].
     22
     23== Code ==
     24{{{
     25#!style type="mapcss"
     26
     27meta {
     28    title: "IconTester";
     29    version: "1.0.[[revision]]_[[date]]";
     30    description: "Helps to test new JOSM icons.";
     31    icon: "apply.svg";
     32    author: "Klumbumbus";
     33    link: "http://josm.openstreetmap.de/wiki/Styles/IconTester";
     34    /* min-josm-version: "???"; */ /* all JOSM versions except extremely old ones */
     35}
     36
     37node[iconpng] {
     38        icon-image: eval(concat(tag(iconpng),".png"));
     39}
     40
     41node[icon] {
     42        icon-image: eval(concat(tag(icon),".svg"));
     43}
     44
     45}}}