Changes between Version 2 and Version 3 of Ru:Help/Styles/MapCSSImplementation
- Timestamp:
- 2018-03-30T09:46:56+02:00 (7 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ru:Help/Styles/MapCSSImplementation
v2 v3 103 103 }}} 104 104 {{{#!td align=left valign=top 105 The{{{meta}}}selector starts a special rule that should stand at the beginning of the file. It gives some general information on the style sheet. All software that supportsMapCSSshould be able to parse this sections without errors, so do not use exotic syntax extensions in this part.105 Селектор {{{meta}}} начинает особое правило, которое должно располагаться в начале файла. Оно даёт некоторую общую информацию о таблице стилей. Все программы, поддерживающие MapCSS, должны быть способны разобрать эту секцию без ошибок, поэтому не используйте экзотических синтаксических выражений в данной части. 106 106 {{{ 107 107 #!mapcss 108 108 meta { 109 title: "Parking lanes"; /* title shown in the menu*/110 icon: "images/logo.png"; /* small icon shown in the menu next to the title*/111 version: "1.2"; /* the version of the style*/112 description: "..."; /* one or two sentences of describing the style*/113 author: "..."; /* the author(s) of the style*/114 link: "http://..."; /* URL to the web page of the style*/115 min-josm-version: 6789; /* the minimum JOSM version where this style works*/109 title: "Parking lanes"; /* заголовок, отображаемый в меню */ 110 icon: "images/logo.png"; /* маленький значок, отображаемый в меню рядом с заголовком */ 111 version: "1.2"; /* версия стиля */ 112 description: "..."; /* одно или два предложения, описывающие стиль */ 113 author: "..."; /* автор(ы) стиля */ 114 link: "http://..."; /* URL веб-страницы стиля */ 115 min-josm-version: 6789; /* минимальная версия JOSM, в которой этот стиль работает */ 116 116 } 117 117 }}} … … 122 122 }}} 123 123 {{{#!td align=left valign=top 124 Some style information not specific to nodes, ways or relations.124 Некоторая информация стиля, не специфичная для точек, линий или отношений. 125 125 {{{ 126 126 #!mapcss 127 127 canvas { 128 fill-color: #ffffea; /* the formerbackground-coloris deprecated sincer7110 */128 fill-color: #ffffea; /* прежний background-color устарел, начиная с r7110 */ 129 129 default-points: false; 130 130 default-lines: false; … … 132 132 }}} 133 133 {{{#!th 134 ''' Key'''134 '''Ключ''' 135 135 }}} 136 136 {{{#!th 137 ''' Description'''137 '''Описание''' 138 138 }}} 139 139 {{{#!th 140 ''' Value Format'''140 '''Формат значения''' 141 141 }}} 142 142 {{{#!th 143 ''' Default Value'''143 '''Значение по умолчанию''' 144 144 }}} 145 145 |- … … 148 148 }}} 149 149 {{{#!td 150 Specifies the overall fill/background color(`background-color`is deprecated sincer7110).151 }}} 152 {{{#!td 153 '' Color''150 Указывает общий цвет заливки/фона (`background-color` устарел, начиная с r7110). 151 }}} 152 {{{#!td 153 ''Цвет'' 154 154 }}} 155 155 {{{#!td align=center … … 161 161 }}} 162 162 {{{#!td 163 Whether default point style should be added to nodes where no style applies.164 }}} 165 {{{#!td 166 '' Boolean''163 Должен ли используемый по умолчанию стиль точки, добавляться к точкам, к которым не применим ни один стиль. 164 }}} 165 {{{#!td 166 ''Логический'' 167 167 }}} 168 168 {{{#!td align=center … … 174 174 }}} 175 175 {{{#!td 176 Whether default line style should be added to ways where no style applies.177 }}} 178 {{{#!td 179 '' Boolean''176 Должен ли используемый по умолчанию стиль линии применяться к линиям, к которым не применим ни один стиль. 177 }}} 178 {{{#!td 179 ''Логический'' 180 180 }}} 181 181 {{{#!td align=center