Changes between Version 6 and Version 9 of Help/Styles/Images


Ignore:
Timestamp:
(multiple changes)
Author:
(multiple changes)
Comment:
(multiple changes)

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/Images

    v6 v9  
    11[[TranslatedPages]]
    22= Including images in styles =
     3
    34
    45== Image-URL ==
     
    1112}
    1213}}}
     14
    1315 Local images:: Provide the path of an image file on the local file system, either absolute or relative to the current `.mapcss` file. Example:
    1416{{{#!mapcss
     
    2325}
    2426}}}
     27
    2528 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).
    2629{{{#!mapcss
     
    2932}
    3033}}}
     34
    3135 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.
    3236{{{#!mapcss
     
    3539}
    3640}}}
     41
    3742 Embedded image data:: `data:`-URL according to [http://www.ietf.org/rfc/rfc2397.txt RFC2397]. Examples:
    3843{{{#!mapcss
     
    4752}
    4853}}}
     54
    4955 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:
    5056{{{#!mapcss
     
    5359}
    5460}}}
     61
     62
    5563== Image formats ==
    5664=== 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)
     65JOSM can display the following raster formats: `png`, `jpeg`, `gif` and `bmp`. \\
     66(Basically all formats that are supported by the Java Runtime Environment)
    5967
    6068=== Vector formats ===
    61 There is also build-in support for ''scalable vector graphics'' (`svg`). svg icons are preffered 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].
     69There 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].
    6270
    6371One 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.
    6472
    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]
     73In 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----
     77Back to [wikitr:/Styles JOSM Map Styles]