Changes between Version 23 and Version 24 of DevelopersGuide/DefaultPresets
- Timestamp:
- 2016-08-13T13:47:23+02:00 (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DevelopersGuide/DefaultPresets
v23 v24 24 24 * svg icons are automatically cleaned up to reduce file size in the JOSM build. So there is no need to do this step manually before uploading svg files to svn. See comment:35:ticket:10479, comment:10:ticket:10877 and ticket:12201#comment:21 25 25 * Due to a bug in svgcleaner however, you need to check that the svg code doesn't contain arguments starting with special characters in style codes e.g. `-inkscape-font-specification:Sans;`. This can lead to color changes (see #13158). 26 * The icon should be identifiable at a size of '''16 pixels'''. This is the size the icons are displayed in the [[Help/MapView|Map View]]. 27 * The '''license''' needs to be compatible with GPL3 (like PD or CC0). A good source for Icons is [http://openclipart.org openclipart.org] (all icons there are PD). You can also check if JOSM already has a fitting unused icon in one of its icon folders: [browser:josm/trunk/images 1],[browser:josm/trunk/images_nodist2], [https://trac.openstreetmap.org/browser/subversion/applications/share/map-icons/classic.small 3].26 * The icon should be identifiable at a size of '''16 pixels'''. This is the default size the icons are displayed in the [[Help/MapView|Map View]]. 27 * The '''license''' needs to be compatible with GPL3 (like PD or CC0). A good source for Icons is [http://openclipart.org openclipart.org] (all icons there are PD). You can also check if JOSM already has a fitting unused icon in one of its icon folders: [browser:josm/trunk/images used icons] and [browser:josm/trunk/images_nodist unused icons]. 28 28 * If the tag applies to nodes, the icon in the MapView and the icon of the preset should be the same if possible. (It is not possible when different features use the same preset, e.g. crossing=island and crossing=traffic_signals have different icons, but are handled in only one preset "Pedestrian Crossing".) 29 29 * Icons with transparent background must '''not be only black or only white'''. Otherwise if one uses a black or white background (no aerial imagery as background) in the Map View black or white icons would be invisible. Workaround: if you want to use a black icon add a square white background to the icon instead of a transparent background or better use a white halo. [[BR]] Examples: [[Image(BlackWhiteIcon.png,middle)]]
