Changes between Version 6 and Version 9 of Help/Styles/Images
- Timestamp:
- (multiple changes)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Styles/Images
v6 v9 1 1 [[TranslatedPages]] 2 2 = Including images in styles = 3 3 4 4 5 == Image-URL == … … 11 12 } 12 13 }}} 14 13 15 Local images:: Provide the path of an image file on the local file system, either absolute or relative to the current `.mapcss` file. Example: 14 16 {{{#!mapcss … … 23 25 } 24 26 }}} 27 25 28 URL of an image on a remote server:: Full URL of an image from the web. Make sure direct linking is tolerated by the website owner. The images are loaded on demand and cached on the client computer (for one week, usually). 26 29 {{{#!mapcss … … 29 32 } 30 33 }}} 34 31 35 Images within a zip-archive:: It is possible to pack your style and all required resources in a zip archive, in order to simplify distribution. When the user loads the zip file as a style, JOSM will automatically detect the `.mapcss` file within the archive and find all the images. 32 36 {{{#!mapcss … … 35 39 } 36 40 }}} 41 37 42 Embedded image data:: `data:`-URL according to [http://www.ietf.org/rfc/rfc2397.txt RFC2397]. Examples: 38 43 {{{#!mapcss … … 47 52 } 48 53 }}} 54 49 55 Images on the OSM-Wiki:: Image files from the OSM-wiki can be linked in a special way. This is supposed to be compatible with the `wiki:symbol`-Tag, see [osmwiki:DE:Hiking DE:Hiking]. Example: 50 56 {{{#!mapcss … … 53 59 } 54 60 }}} 61 62 55 63 == Image formats == 56 64 === Raster formats === 57 JOSM can display the following raster formats: `png`, `jpeg`, `gif` and `bmp`. [[br]]58 (Basically all formats that are supported by the Java Runtime Environment v. 6)65 JOSM can display the following raster formats: `png`, `jpeg`, `gif` and `bmp`. \\ 66 (Basically all formats that are supported by the Java Runtime Environment) 59 67 60 68 === Vector formats === 61 There is also build-in support for ''scalable vector graphics'' (`svg`). svg icons are pref fered over raster format icons because of lossless scaling on hidpi screens. Most `svg`-images should be rendered correctly, but in some cases the result may be flawed. This is due to limitations of the used [https://svgsalamander.java.net/ svg-library].69 There is also build-in support for ''scalable vector graphics'' (`svg`). svg icons are preferred over raster format icons because of lossless scaling on hidpi screens. Most `svg`-images should be rendered correctly, but in some cases the result may be flawed. This is due to limitations of the used [https://svgsalamander.java.net/ svg-library]. 62 70 63 71 One thing you can be sure of, is that the rendering is consistent on all systems. So either the result looks OK, or it does not. 64 72 65 In case it does not, try to "simplify" the `svg` in a way that it can be handled by JOSM. See also the svg related hints at [wiki:DevelopersGuide/DefaultPresets#NewIcons] 73 In case it does not, try to "simplify" the `svg` in a way that it can be handled by JOSM. See also the svg related hints at [wikitr:/DevelopersGuide/DefaultPresets#NewIcons]. 74 75 76 ---- 77 Back to [wikitr:/Styles JOSM Map Styles]
