Changes between Version 3 and Version 4 of Ru:Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2018-03-30T10:31:38+02:00 (7 years ago)
Author:
ak099
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Ru:Help/Styles/MapCSSImplementation

    v3 v4  
    161161}}}
    162162{{{#!td
    163 Должен ли используемый по умолчанию стиль точки, добавляться к точкам, к которым не применим ни один стиль.
     163Должен ли используемый по умолчанию стиль точки добавляться к точкам, к которым не применим ни один стиль.
    164164}}}
    165165{{{#!td
     
    184184}}}
    185185
    186 === Child selector ===
    187 If a node is part of a way, we say that it is a ''child'' of this way. Similarly, if a node, a way, or a relation is a member of a relation, we say, that it is a ''child'' of this relation.
    188 
    189 In MapCSS you can use a '''child selector''' which matches only if both the parent and the child object match.
    190 
    191 Example:
     186=== Селектор Child ===
     187Если точка является частью линии, мы называем её ''потомком'' (child) этой линии. Аналогично, если точка, линия или отношение является участником отношения, то мы называем их ''потомками'' этого отношения.
     188
     189В MapCSS можно использовать '''селектор потомков''', которому соответствует объект, только если и родительский объект и его потомок соответствуют ему.
     190
     191Пример:
    192192{{{
    193193#!mapcss
    194194/*
    195  * only matches for a way which is a child of a relation with tags
    196  * type=route and route=foot
     195 * соответствует только линии, которая является потомком отношения с тегами
     196 * type=route и route=foot
    197197 */
    198198relation[type=route][route=foot] > way {...}
    199199}}}
    200200
    201 Notes:
     201Примечания:
    202202* Zoom selector and Layer identifier are only relevant for the part to the right of the > sign.
    203 * The functions ''prop()'' and ''is_prop_set()'' are only supported on the right side of the > sign.
    204 * The functions ''parent_tag'' and ''parent_tags'' (see below) can be used to access tags from the parent(s).
    205 * For compatibility with the MapCSS 0.2 standard, `relation[type=route][route=foot] way {/*...*/}`, without the greather-than-sign `>` is supported, too. However, no [[#Linkselector]] may be specified in this case.
     203* Функции ''prop()'' и ''is_prop_set()'' поддерживаются только на стороне справа от знака >.
     204* Функции ''parent_tag'' и ''parent_tags'' (см. ниже) можно использовать для доступа к тегам из родителя(ей).
     205* Для совместимости со стандартом MapCSS 0.2, `relation[type=route][route=foot] way {/*...*/}`, без знака `>` также поддерживается. However, no [[#Linkselector]] may be specified in this case.
    206206
    207207