Changes between Version 8 and Version 9 of Help/Styles/MapCSSTutorial


Ignore:
Timestamp:
2016-02-07T17:10:18+01:00 (9 years ago)
Author:
DiGro
Comment:

corrected some typo's

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSTutorial

    v8 v9  
    7676In the first part of the declarations, we define a dash pattern of gray and green. Leave out the {{{dashes-background-color}}} to display a broken line with no color in between the dashes.
    7777
    78 In the second part, the name of the street ('''{{{text: "name";}}}''') will be displayed along the line ('''{{{text-position: line;}}}''') with an vertical offset of 9 px. An offset of 0 would render the text on top of the line.
     78In the second part, the name of the street ('''{{{text: "name";}}}''') will be displayed along the line ('''{{{text-position: line;}}}''') with a vertical offset of 9 px. An offset of 0 would render the text on top of the line.
    7979
    8080=== Example 4 ===
     
    9595}}}
    9696
    97 The '''{{{area}}}''' type selector acts on ways and multipolygon relations. The condition '''{{{[building]}}}''' applies to all objects that have the key {{{building}}} set to any value. Note that the outline of the building is painted as well, although we haven't specified any line properties. This is because JOSM will alway draw at least one line element for each way. If no line properties are found, a default line element is generated.
     97The '''{{{area}}}''' type selector acts on ways and multipolygon relations. The condition '''{{{[building]}}}''' applies to all objects that have the key {{{building}}} set to any value. Note that the outline of the building is painted as well, although we haven't specified any line properties. This is because JOSM will always draw at least one line element for each way. If no line properties are found, a default line element is generated.
    9898
    9999=== Example 5 ===
     
    119119}}}
    120120
    121 This shows, how you can list multiple selectors for one rule. We fill the area with a pattern, if it is tagged {{{landuse=forest}}} or {{{natural=wood}}}. The opacity is set to 0.8, where 1.0 means opaque and 0.0 is fully transparent. You can set opacity, whenever a color or an image is defined. E.g. {{{icon-opacity}}} for {{{icon-image}}} and {{{opacity}}} for {{{color}}}. A label for the object is placed in the the center of the area.
     121This shows, how you can list multiple selectors for one rule. We fill the area with a pattern, if it is tagged {{{landuse=forest}}} or {{{natural=wood}}}. The opacity is set to 0.8, where 1.0 means opaque and 0.0 is fully transparent. You can set opacity, whenever a color or an image is defined. E.g. {{{icon-opacity}}} for {{{icon-image}}} and {{{opacity}}} for {{{color}}}. A label for the object is placed in the center of the area.
    122122
    123123----