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


Ignore:
Timestamp:
2019-08-02T21:33:10+02:00 (6 years ago)
Author:
Klumbumbus
Comment:

don't use deprecated tag in example (version 161 and 162 of english page)

Legend:

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

    v12 v13  
    4848way[highway=residential] {  /*  the styles */}
    4949
    50 /* применяется к новым замкнутым линиям на слое 1, если они имеют тег amenity=parking и access=public, и если
     50/* применяется к новым замкнутым линиям на слое 1, если они имеют тег amenity=parking и access=customers, и если
    5151 * уровень масштаба в диапазоне от 11 до 14
    5252 */
    53 way|z11-14[amenity=parking][access=public]:closed:new::layer_1 {...}
    54 
    55 
    56 area[amenity=parking][access=public], area[amenity=parking][!access] {...}
     53way|z11-14[amenity=parking][access=customers]:closed:new::layer_1 {...}
     54
     55
     56area[amenity=parking][access=customers], area[amenity=parking][!access] {...}
    5757relation[type=route][route=foot] > way::relation_underlay {..}
    5858}}}
     
    619619}
    620620
    621 way[access][access!=public]::non_public_access_layer {
     621way[access][access!=yes]::non_public_access_layer {
    622622    width: +2;
    623623    color:red;
     
    633633}
    634634}}}
    635 This draws all secondary and tertiary roads in yellow and orange respectively. Any road with an access tag other than public will get an extra line style below ('''{{{object-z-index:-1.0;}}}''') the main line. If that part of the street happens to be a bridge, it will also get a half transparent blue overlay. The relative width value ('''{{{width: +2;}}}''') refers to the width on the default layer (2 or 3 in this case).
     635This draws all secondary and tertiary roads in yellow and orange respectively. Any road with an access tag other than yes will get an extra line style below ('''{{{object-z-index:-1.0;}}}''') the main line. If that part of the street happens to be a bridge, it will also get a half transparent blue overlay. The relative width value ('''{{{width: +2;}}}''') refers to the width on the default layer (2 or 3 in this case).
    636636
    637637The name for the layer can be any identifier.