Changes between Version 246 and Version 247 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2023-02-08T15:16:49+01:00 (2 years ago)
Author:
skyper
Comment:

add links

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v246 v247  
    6666
    6767=== Type selector ===
    68 
    6968{{{#!th valign=top
    7069'''Selector'''
     
    10421041Do not rely on the default values for `symbol-...` properties (except for `opacity`). They are intended for "quick & dirty" style sheets and should be set to an explicit value.
    10431042
    1044 === Line styles ===
     1043=== Line styles ===#LineStyles
    10451044||=  '''Key''' =||= '''Description''' =||= '''Value Format''' =||= '''Default Value''' =||
    10461045|| `width` || Line width || ''Width'' ||  -  ||
     
    10741073Similar 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.
    10751074
    1076 === Area styles ===
     1075=== Area styles ===#AreaStyles
    10771076||= '''Key''' =||= '''Description''' =||= '''Value Format''' =||= '''Default Value''' =||
    10781077|| `fill-color` || Color in which to fill the area. Until 11700, the alpha component was set to 50 to create a transparency effect. || ''Color'' ||  -  ||
     
    11361135|| `text-anchor-vertical` || vertical text label placement || `above`, `top`, `center`, `bottom`, `below` ||  `bottom`  ||
    11371136|| `text-rotation` || Rotate the text clockwise or anti clockwise (negative value)\\(since r16253) || `[rad]`, `[rad]rad`, `[deg]°`, `[deg]deg`, `[grad]grad`, `[turn]turn` \\([https://developer.mozilla.org/en/docs/Web/CSS/angle definition]) or a cardinal direction (e.g. `northeast` or `sw`); \\See also the functions `degree_to_radians`, `cardinal_to_radians`. \\(Note that the direction means where the upper edge of the text faces.\\That means with the default direction of north the text flows to east\\(with a left to right language). \\So if you want to flow it to e.g. south you need to set east.)\\ e.g.  `note[...] {...  text-rotation: way; ...}` ||  -  ||
    1138 || `text-position` |||||| see '''Area styles''' and '''Line styles''' ||
    1139 || `font-family` || font family || ''String'' ||  "Droid Sans" \\(JOSM preference "mappaint.font")  ||
    1140 || `font-size` || font size || ''Number'' ||  8 \\(JOSM preference "mappaint.fontsize")  ||
     1137|| `text-position` |||||| see [AreaStyles Area styles] and [LineStyles Line styles] ||
     1138|| `font-family` || font family || ''String'' ||  "Droid Sans" \\(JOSM preference "`mappaint.font`")  ||
     1139|| `font-size` || font size || ''Number'' ||  8 \\(JOSM preference "`mappaint.fontsize`")  ||
    11411140|| `font-weight` || bold or not || `bold`, `normal` ||  `normal`  ||
    11421141|| `font-style` || italic or not || `italic`, `normal` ||  `normal`  ||