Changes between Version 17 and Version 18 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2012-05-10T16:31:21+02:00 (14 years ago)
Author:
bastiK
Comment:

update

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v17 v18  
    1 This page documents details on JOSM's [http://wiki.openstreetmap.org/wiki/MapCSS/0.2 MapCSS] implementation. At the moment (Jul-2011) it is under active development and anything may change without warning.
     1This page documents details on JOSM's [http://wiki.openstreetmap.org/wiki/MapCSS/0.2 MapCSS] implementation. At the moment (May-2012) it is under active development and anything may change without warning.
    22[[TOC(inline)]]
    33== General Structure ==
     
    594594
    595595||=  '''Key''' =||= '''Description''' =||= '''Value Format''' =||= '''Default Value''' =||
    596 || {{{z-index}}}                                 || specify the order the objects are drawn: The objects with higher z-index are drawn on top of objects with lower z-index || ''Number'' (can be negative) ||  depends on the created style element: -1000 for areas, 0 for lines, 1000 for node style elements  ||
     596|| {{{z-index}}}                                 || specify the order the objects are drawn: The objects with higher z-index are drawn on top of objects with lower z-index || ''Number'' (can be negative) ||  0  ||
     597|| {{{major-z-index}}} || this is similar to z-index, but it has higher priority than {{{z-index}}}. So if one object has a higher {{{major-z-index}}} than the other, it is drawn on top. If the {{{major-z-index}}} is the same, {{{z-index}}} decides. || ''Number'' (can be negative) ||  Depends on style element: area: 1, casing: 2, left-/right-casing: 2.1, line-pattern: 2.9, line: 3, point: 4, default-point: 4.1, line-text: 4.9, point-text: 5   ||
    597598{{{#!comment
    598599
     
    651652All these properties (except for {{{text-...}}} and {{{font-...}}}) exist also with the {{{casing-}}} prefix. The casing is a second independent line element, that is drawn below the normal line and can be used to draw a thin frame around the line in another color.
    652653||=  '''Key''' =||= '''Description''' =||= '''Value Format''' =||= '''Default Value''' =||
    653 || {{{casing-width}}}               || Casing width || ''Width'' (revers to {{{width}}} if relative width is specified) ||  -  ||
     654|| {{{casing-width}}}               || Width of the border on both sides of the main line. In JOSM < 5214: Total width of the casing || ''Width'' (revers to {{{width}}} if relative width is specified) ||  -  ||
    654655|| {{{casing-color}}} || Casing color || ''Color'' ||  value of {{{fill-color}}} or (if unset) JOSM's default untagged color ({{{#808080}}}) ||
    655656|| {{{casing-opacity}}} || How transparent the casing is. || ''Opacity'' ||  1.0  ||
    656657|| {{{casing-}}}... || ... || ... ||  ...  ||
     658Similar to {{{casing-}}}, there is also the {{{left-casing-}}} and {{{right-casing-}}} prefix. It draws additional lines to the left and to the right of the main line.
    657659
    658660=== Area styles ===