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


Ignore:
Timestamp:
2021-11-18T18:57:34+01:00 (4 years ago)
Author:
leni
Comment:

line breaks and wikitr

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/Images

    v6 v7  
    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]]
     65JOSM can display the following raster formats: `png`, `jpeg`, `gif` and `bmp`. \\
    5866(Basically all formats that are supported by the Java Runtime Environment v. 6)
    5967
     
    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].