Changes between Version 234 and Version 235 of Help/Styles/MapCSSImplementation
- Timestamp:
- 2023-02-08T14:22:57+01:00 (3 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Help/Styles/MapCSSImplementation
v234 v235 1128 1128 || `text-color` || the text color || ''Color'' || `white` for lines and nodes,\\`#c0c0c0` for areas \\(JOSM "`text`" and "`areatext`"\\color preferences) || 1129 1129 || `text-opacity` || how transparent the text is || ''Opacity'' || 1.0 || 1130 || `text-offset-x` || shift the text horizontally, (not supported for text along line) || ''Number'' || 0 || 1130 || `text-offset-x` || shift the text horizontally, \\(not supported for text along line) || ''Number'' || 0 || 1131 1131 || `text-offset-y`\\(can also be written as\\`text-offset`) || shift the text vertically, positive values shift the text in upwards direction || ''Number'' || 0 || 1132 || `text-halo-radius` || size of text background border (to make text visible on background with a similar color) || ''Number'' || - || 1132 || `text-halo-radius` || size of text background border \\(to make text visible on background \\with a similar color) || ''Number'' || - || 1133 1133 || `text-halo-color` || color of the text halo || ''Color'' || complement of the text color || 1134 1134 || `text-halo-opacity` || transparency for the text halo || ''Opacity'' || 1.0 || 1135 1135 || `text-anchor-horizontal` || horizontal text label placement || `left`, `center`, `right` || `right` || 1136 1136 || `text-anchor-vertical` || vertical text label placement || `above`, `top`, `center`, `bottom`, `below` || `bottom` || 1137 || `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; ...} || - ||1137 || `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 1138 || `text-position` |||||| see '''Area styles''' and '''Line styles''' || 1139 1139 || `font-family` || font family || ''String'' || "Droid Sans" \\(JOSM preference "mappaint.font") ||
