Changes between Version 11 and Version 12 of Ru:Help/Styles/MapCSSImplementation


Ignore:
Timestamp:
2018-04-05T09:10:43+02:00 (8 years ago)
Author:
ak099
Comment:

--

Legend:

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

    v11 v12  
    565565
    566566
    567 === Zoom selector ===
    568 You can decorate a type selector with a '''zoom selector'''. The zoom selector restricts the range of zoom levels
    569 at which the respective MapCSS rule is applied.
     567=== Селекторы масштаба ===
     568Селектор типа можно дополнить '''селектором масштаба'''. Он ограничит диапазон уровней масштаба, на которых применяется соответствующее правило MapCSS.
    570569
    571570{{{#!th align=left valign=top
    572 '''Example'''
     571'''Пример'''
    573572}}}
    574573{{{#!th align=left valign=top
    575 '''Description'''
    576 }}}
    577 |-------------------------------------------------------------------------------
    578 || {{{way|z12 {...} }}} || At zoom level 12 ||
    579 || {{{way|z13-15 {...} }}} || From 13 to 15 ||
    580 || {{{way|z16- {...} }}} || 16 and above ||
    581 || {{{way|z-12 {...} }}} || 12 and below ||
    582 || {{{way {...} }}} || any zoom level ||
     574'''Описание'''
     575}}}
     576|-------------------------------------------------------------------------------
     577|| {{{way|z12 {...} }}} || При уровне масштаба 12 ||
     578|| {{{way|z13-15 {...} }}} || С 13 по 15 ||
     579|| {{{way|z16- {...} }}} || 16 и выше ||
     580|| {{{way|z-12 {...} }}} || 12 и ниже ||
     581|| {{{way {...} }}} || при любом масштабе ||
    583582
    584583The precise definition of scale ranges for each zoom level may change in the future. By rule of thumb you can expect to be approximately at zoom level ''n'' when imagery displays slippymap tiles of level ''n''.
    585584
    586585
    587 === Pseudo Classes ===
    588 See [/doc/org/openstreetmap/josm/gui/mappaint/mapcss/Condition.PseudoClasses.html Javadoc] for the up-to-date list of pseudo classes supported by JOSM's MapCSS implementation.
    589 
    590 || {{{:closed}}} || true for ways where the first node is the same as the last and for any (completely downloaded) multipolygon relation ||
    591 || {{{:closed2}}} || same as above, but this one ignores if a mulipolygon is downloaded completely (since r9099) ||
    592 || {{{:completely_downloaded}}} || true for a relation whose members are all downloaded (since r9099) ||
    593 || {{{:new}}} || all new objects ||
    594 || {{{:connection}}} || true for nodes that are used by more than one way ||
    595 || {{{:unconnected}}} || true for nodes that are not used by any way (since r6687) ||
    596 || {{{:tagged}}} || What JOSM considers tagged, i.e. an object that with a tag key other than the following: {{{source*, source_ref, note, comment, converted_by, created_by, watch*, fixme, FIXME, description, attribution}}} (version r4008; in this list, {{{*}}} is a glob)
     586=== Псевдоклассы ===
     587Смотрите в [/doc/org/openstreetmap/josm/gui/mappaint/mapcss/Condition.PseudoClasses.html Javadoc] актуальный в настоящее время список псевдоклассов, поддерживаемых в реализации MapCSS для JOSM.
     588
     589|| {{{:closed}}} || истинно для линий, первая точка которых совпадает с последней (т.е. замкнутых линий) и для любых (полностью скачанных) отношений типа мультиполигон ||
     590|| {{{:closed2}}} || то же, что и выше, но this one ignores if a mulipolygon is downloaded completely (с r9099) ||
     591|| {{{:completely_downloaded}}} || истинно для отношений, у которых скачаны все участники (с r9099) ||
     592|| {{{:new}}} || все новые объекты ||
     593|| {{{:connection}}} || истинно для точек, которые используются более чем в одной линии ||
     594|| {{{:unconnected}}} || истинно для точек, которые не входят в состав ни одной линии (с r6687) ||
     595|| {{{:tagged}}} || объект, тегированный в понимании JOSM, т.е. объект имеет ключ тега кроме следующих: {{{source*, source_ref, note, comment, converted_by, created_by, watch*, fixme, FIXME, description, attribution}}} (версия r4008; in this list, {{{*}}} is a glob)
    597596|| {{{:righthandtraffic}}} || true if there is right-hand traffic at the current location (since r7193); see [[left-right-hand-traffic]] for screenshot of areas ||
    598597|| {{{:clockwise}}} || Whether the way is closed and oriented clockwise, or non-closed and the 1st, 2nd and last node are in clockwise order. ||