Changes between Version 246 and Version 247 of Help/Styles/MapCSSImplementation
- Timestamp:
- 2023-02-08T15:16:49+01:00 (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Styles/MapCSSImplementation
v246 v247 66 66 67 67 === Type selector === 68 69 68 {{{#!th valign=top 70 69 '''Selector''' … … 1042 1041 Do 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. 1043 1042 1044 === Line styles === 1043 === Line styles ===#LineStyles 1045 1044 ||= '''Key''' =||= '''Description''' =||= '''Value Format''' =||= '''Default Value''' =|| 1046 1045 || `width` || Line width || ''Width'' || - || … … 1074 1073 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. 1075 1074 1076 === Area styles === 1075 === Area styles ===#AreaStyles 1077 1076 ||= '''Key''' =||= '''Description''' =||= '''Value Format''' =||= '''Default Value''' =|| 1078 1077 || `fill-color` || Color in which to fill the area. Until 11700, the alpha component was set to 50 to create a transparency effect. || ''Color'' || - || … … 1136 1135 || `text-anchor-vertical` || vertical text label placement || `above`, `top`, `center`, `bottom`, `below` || `bottom` || 1137 1136 || `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`") || 1141 1140 || `font-weight` || bold or not || `bold`, `normal` || `normal` || 1142 1141 || `font-style` || italic or not || `italic`, `normal` || `normal` ||