wiki:Styles/ParkingLanes

Parking lanes

Example:

StyleParkingLanes.png (NOZIP)

(data used for image ©OpenStreetMap contributors ODbL)

Code:

meta {
    title: "Parking lanes";
    description: "Parking lanes along roads and parking/stopping restrictions.";
    link: "https://wiki.openstreetmap.org/wiki/Key:parking:lane";
    author: "Sebastian Klemm, Kay Drangmeister";
    version: "0.12_2018-12-05";
    min-josm-version: "4399";
}

meta[lang=de]
{
    title: "Parkstreifen";
    description: "Parkstreifen/Parkplätze entlang von Straßen und Park-/Halteverbote.";
}

meta[lang=ru]
{
    title: "Парковка вдоль дороги";
    description: "Парковка вдоль дорог/ограничения и запреты у такой парковки";
    link: "https://wiki.openstreetmap.org/wiki/RU:Key:parking:lane";
}

way[highway][parking:lane:right]::parking_lanes_right,
way[highway][parking:lane:both]::parking_lanes_right
{
    z-index: -3;
    linecap: none;
}
way[highway][parking:lane:left]::parking_lanes_left,
way[highway][parking:lane:both]::parking_lanes_left
{
    z-index: -3;
    linecap: none;
}

way[highway][parking:lane:right=parallel]::parking_lanes_right,
way[highway][parking:lane:both=parallel]::parking_lanes_right
{
    width: 3;
    dashes: 10, 2;
}
way[highway][parking:lane:left=parallel]::parking_lanes_left,
way[highway][parking:lane:both=parallel]::parking_lanes_left
{
    width: 3;
    dashes: 10, 2;
}

way[highway][parking:lane:right=perpendicular]::parking_lanes_right,
way[highway][parking:lane:both=perpendicular]::parking_lanes_right
{
    width: 10;
    dashes: 3, 4;
}
way[highway][parking:lane:left=perpendicular]::parking_lanes_left,
way[highway][parking:lane:both=perpendicular]::parking_lanes_left
{
    width: 10;
    dashes: 3, 4;
}

way[highway][parking:lane:right=diagonal]::parking_lanes_right,
way[highway][parking:lane:both=diagonal]::parking_lanes_right
{
    width: 7;
    dashes: 4, 6;
}
way[highway][parking:lane:left=diagonal]::parking_lanes_left,
way[highway][parking:lane:both=diagonal]::parking_lanes_left
{
    width: 7;
    dashes: 4, 6;
}

way[highway][parking:lane:right=marked]::parking_lanes_right,
way[highway][parking:lane:both=marked]::parking_lanes_right
{
    width: 3;
    dashes: 10, 12;
}
way[highway][parking:lane:left=marked]::parking_lanes_left,
way[highway][parking:lane:both=marked]::parking_lanes_left
{
    width: 3;
    dashes: 10, 12;
}

way[highway][parking:lane:right=no_parking]::parking_lanes_right,
way[highway][parking:lane:both=no_parking]::parking_lanes_right
{
    color: orange;
    width: 6;
    dashes: 6, 12;
}
way[highway][parking:lane:left=no_parking]::parking_lanes_left,
way[highway][parking:lane:both=no_parking]::parking_lanes_left
{
    color: orange;
    width: 6;
    dashes: 6, 12;
}

way[highway][parking:lane:right=no_stopping]::parking_lanes_right,
way[highway][parking:lane:both=no_stopping]::parking_lanes_right
{
    color: red;
    width: 6;
    dashes: 6, 12;
}
way[highway][parking:lane:left=no_stopping]::parking_lanes_left,
way[highway][parking:lane:both=no_stopping]::parking_lanes_left
{
    color: red;
    width: 6;
    dashes: 6, 12;
}

way[highway][parking:lane:right=fire_lane]::parking_lanes_right,
way[highway][parking:lane:both=fire_lane]::parking_lanes_right
{
    color: red;
    width: 9;
    dashes: 9, 13;
}
way[highway][parking:lane:left=fire_lane]::parking_lanes_left,
way[highway][parking:lane:both=fire_lane]::parking_lanes_left
{
    color: red;
    width: 9;
    dashes: 9, 13;
}

way[highway][parking:lane:right]::parking_lanes_right,
way[highway][parking:lane:both]::parking_lanes_right
{
    offset: eval(0 - 4 - (prop("width") * 0.5) - (prop("width", "default") * 0.5));
    a: print(prop("offset"));
}

way[highway][parking:lane:left]::parking_lanes_left,
way[highway][parking:lane:both]::parking_lanes_left
{
    offset: eval(4 + (prop("width") * 0.5) + (prop("width", "default") * 0.5));
}

way[highway][parking:condition:right=free]::parking_lanes_right,
way[highway][parking:condition:both=free]::parking_lanes_right
{
    color: #7fff00;
}
way[highway][parking:condition:left=free]::parking_lanes_left,
way[highway][parking:condition:both=free]::parking_lanes_left
{
    color: #7fff00;
}

way[highway][parking:condition:right=disc]::parking_lanes_right,
way[highway][parking:condition:both=disc]::parking_lanes_right
{
    color: #1c86ee;
}
way[highway][parking:condition:left=disc]::parking_lanes_left,
way[highway][parking:condition:both=disc]::parking_lanes_left
{
    color: #1c86ee;
}

way[highway][parking:condition:right=ticket]::parking_lanes_right,
way[highway][parking:condition:both=ticket]::parking_lanes_right
{
    color: #009999;
}
way[highway][parking:condition:left=ticket]::parking_lanes_left,
way[highway][parking:condition:both=ticket]::parking_lanes_left
{
    color: #009999;
}

way[highway][parking:condition:right=residents]::parking_lanes_right,
way[highway][parking:condition:both=residents]::parking_lanes_right
{
    color: #a33600;
}
way[highway][parking:condition:left=residents]::parking_lanes_left,
way[highway][parking:condition:both=residents]::parking_lanes_left
{
    color: #a33600;
}

way[highway][parking:condition:right=customers]::parking_lanes_right,
way[highway][parking:condition:both=customers]::parking_lanes_right
{
    color: #ff3399;
}
way[highway][parking:condition:left=customers]::parking_lanes_left,
way[highway][parking:condition:both=customers]::parking_lanes_left
{
    color: #ff3399;
}

way[highway][parking:condition:right=private]::parking_lanes_right,
way[highway][parking:condition:both=private]::parking_lanes_right
{
    color: #ff0000;
}
way[highway][parking:condition:left=private]::parking_lanes_left,
way[highway][parking:condition:both=private]::parking_lanes_left
{
    color: #ff0000;
}

way[highway][parking:condition:right=disabled]::parking_lanes_right,
way[highway][parking:condition:both=disabled]::parking_lanes_right
{
    color: #ffd800;
}
way[highway][parking:condition:left=disabled]::parking_lanes_left,
way[highway][parking:condition:both=disabled]::parking_lanes_left
{
    color: #ffd800;
}

Styles_ParkingLanes-style.mapcss, Styles_ParkingLanes.zip

Last modified 6 weeks ago Last modified on 2018-12-05T23:30:16+01:00

Attachments (1)

Download all attachments as: .zip