Skip to content

Instantly share code, notes, and snippets.

@gplv2
Last active December 12, 2015 12:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gplv2/4772552 to your computer and use it in GitHub Desktop.
Save gplv2/4772552 to your computer and use it in GitHub Desktop.
A more suitable complete version of the new parking features mapcss including parking aisles etc for JOSM
meta {
title: "new parking features";
description: 'Display the new parking features from "Proposed_features/parking" (see link).';
version: "1.0_2013-02-12";
author: "Glenn Plas";
link: "http://wiki.openstreetmap.org/wiki/Proposed_features/parking";
}
meta[lang=en] {
title: "New parking features";
description: 'Highlights the approved "Proposed_features/parking" (see Link).';
}
meta[lang=nl] {
title: "Nieuwe parkeer opties";
description: 'Markeert het nieuwe "Proposed_features/parking" voorstel (zie Link).';
}
way[service=parking_aisle] {
width: 6;
color: orange;
}
relation[site=parking][amenity=parking][type=site] > way[amenity=parking_space] {
text: name + " - " + capacity;
fill-color: green;
fill-opacity: 0.3;
font-size: 12;
text-position: center;
icon-image: "presets/parking.png";
color: green;
width: 5;
}
node[amenity=parking_entrance] {
symbol-shape: circle;
symbol-size: 13;
symbol-fill-color: #f7efb7;
symbol-fill-opacity: 0.5;
symbol-stroke-width: 2;
symbol-stroke-color: #f7efb7;
}
relation[type=route] >[role="link"] way { /* matches any way which is a member of route relation with role 'link' */
color: blue;
}
relation[type=site][amenity=parking] {
text-color: pink;
font-size: 13;
text: name;
text-halo-radius: 2;
text-offset-y: -40;
z-index:5.0;
}
relation[site=parking][amenity=parking][type=site] > node[amenity=parking_entrance] {
symbol-shape: circle;
symbol-size: 13;
symbol-fill-color: #f7efb7;
symbol-fill-opacity: 0.5;
symbol-stroke-width: 5;
symbol-stroke-color: green;
}
relation[site=parking][amenity=parking][type=site] > area {
text: name + " - " + capacity;
fill-color: green;
fill-opacity: 0.3;
font-size: 12;
text-position: center;
icon-image: "presets/parking.png";
}
relation[site=parking][amenity=parking_space] > way|z14-[surface]
{
font-family: Arial;
text: "surface";
text-color: #B0EEEE;
}
relation[site=parking][amenity=parking_space] > way|z14-[surface]
{
font-size: 10;
text-offset: 7;
text-position: line;
z-index: 1.0;
}
relation[site=parking][amenity=parking_space] > way|z14-[surface=~/^paved|asphalt/]
{
text-color: white;
render-encasing: true;
render-text: none;
}
relation[site=parking][amenity=parking_space] > way|z14-[surface=~/paving|concrete|cobble/]
{
text-color: #004040;
render-encasing: true;
render-text: eval(prop(text));
}
relation[site=parking][amenity=parking_space] > way|z15-[surface=~/gravel|pebble/]
{
text-color: #D0D090;
}
relation[site=parking][amenity=parking_space] > way|z15-[surface=~/unpaved|dirt|earth|ground|mud/]
{
text-color: #FFB0B0;
}
relation[site=parking][amenity=parking_space] > way|z15-[surface=sand]
{
text-color: #FFFF80;
}
relation[site=parking][amenity=parking_space] > way|z15-[surface=grass]
{
text-color: #80FF80;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment