Changes between Version 221 and Version 222 of Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2023-02-08T13:16:38+01:00 (3 years ago)
Author:
mikeho
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Help/Styles/MapCSSImplementation

    v221 v222  
    10821082|| `fill-opacity` || How transparent the fill is; applies to both color and image || ''Opacity'' || 0.2 ''(since r11700, 1.0 before that)'' (can be changed with the `mappaint.fillalpha` and `mappaint.fill-image-alpha` preferences)  ||
    10831083|| `text-position` || set to `center`, if text should be drawn in the center of the area. Set to `inside` to place the text completely inside the area. ''(since r11722)'' || `line`, `center`, `inside` ||  -  ||
    1084 || `text-...`, `font-...` ||||||  general text & font properties  ||
     1084|| `text-...`, `font-...` ||||||  see general text & font properties  ||
    10851085Required properties to create an Area style: `fill-color` or `fill-image`
    10861086
     
    11361136|| `text-anchor-vertical` || vertical text label placement || `above`, `top`, `center`, `bottom`, `below` ||  `bottom`  ||
    11371137|| `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.) ||  -  ||
    1138 || `text-position` |||||| see '''Area styles''' and '''Line styles''' ||
     1138|| `text-position` |||||| see '''[wiki:Areastyles Area styles]''' and '''Line styles''' ||
    11391139|| `font-family` || font family || ''String'' ||  "Droid Sans" \\(JOSM preference "mappaint.font")  ||
    11401140|| `font-size` || font size || ''Number'' ||  8 \\(JOSM preference "mappaint.fontsize")  ||