Changes between Version 17 and Version 18 of Help/Styles/MapCSSImplementation
- Timestamp:
- 2012-05-10T16:31:21+02:00 (14 years ago)
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.1 This 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. 2 2 [[TOC(inline)]] 3 3 == General Structure == … … 594 594 595 595 ||= '''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 || 597 598 {{{#!comment 598 599 … … 651 652 All 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. 652 653 ||= '''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) || - || 654 655 || {{{casing-color}}} || Casing color || ''Color'' || value of {{{fill-color}}} or (if unset) JOSM's default untagged color ({{{#808080}}}) || 655 656 || {{{casing-opacity}}} || How transparent the casing is. || ''Opacity'' || 1.0 || 656 657 || {{{casing-}}}... || ... || ... || ... || 658 Similar 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. 657 659 658 660 === Area styles ===
