wiki:Styles/MaxspeedIcons

Note that for the default internal mappaint style this style is no longer required, since the display of the tagged value of maxspeed was integrated in the default internal style. See #10301.

meta {
  title: "Speedlimit Signs";
  version: "3.13_2019-05-19";
  description: "Display maxspeed on nodes by Speedlimit signs.";
  author: "Martin Koppenhoefer";
}

meta[lang=de] {
  title: "Geschwindigkeitsbegrenzungszeichen";
  description: "Anzeige der Höchstgeschwindigkeit auf Punkten mittels Geschwindigkeitsbegrenzungszeichen.";
}

meta[lang=it] {
  title: "Segnaletica limiti di velocità";
  description: "Mostra la segnaletica per limiti di velocità (su nodi)";
}

meta[lang=ru] {
  title: "Знаки ограничения скорости";
  description: "Отображения знаков максимальной скорости на точка.";
}

/* Rules to display icons on nodes. Suggested tagging (additionally to setting the restriction on the highway):
     traffic_sign=maxspeed
     maxspeed=<restriction in km/h on the sign>
   PLEASE NOTE: maxspeed=7 is mapped on 5 and maxspeed=8 is mapped on 10
*/

/* default icon */

node[maxspeed] {
  icon-image:"vehicle/restrictions/speed_blank.png";
}

node[maxspeed="5"], node[maxspeed="5 mph"], node[traffic_sign="DE:274:5"], node[maxspeed="7"] {
  icon-image:"vehicle/restrictions/speed5.png";
}

node[maxspeed="8"], node[maxspeed="10"], node[maxspeed="10 mph"], node[traffic_sign="DE:274:10"] {
  icon-image:"vehicle/restrictions/speed5.png";
}

node[maxspeed="15"], node[maxspeed="15 mph"] {
  icon-image:"vehicle/restrictions/speed15.png";
}

node[maxspeed="20"], node[maxspeed="20 mph"], node[traffic_sign="DE:274:20"], node[maxspeed="RU:living_street"] {
  icon-image:"vehicle/restrictions/speed20.png";
}

node[maxspeed="25"], node[maxspeed="25 mph"] {
  icon-image:"vehicle/restrictions/speed25.png";
}

node[maxspeed="30"], node[maxspeed="30 mph"], node[traffic_sign="DE:274:30"] {
  icon-image:"vehicle/restrictions/speed30.png";
}

node[maxspeed="35"], node[maxspeed="35 mph"] {
  icon-image:"vehicle/restrictions/speed35.png";
}

node[maxspeed="40"], node[maxspeed="40 mph"], node[traffic_sign="DE:274:40"] {
  icon-image:"vehicle/restrictions/speed40.png";
}

node[maxspeed="45"], node[maxspeed="45 mph"] {
  icon-image:"vehicle/restrictions/speed45.png";
}

node[maxspeed="50"], node[maxspeed="50 mph"], node[traffic_sign="DE:274:50"] {
  icon-image:"vehicle/restrictions/speed50.png";
}

node[maxspeed="55"], node[maxspeed="55 mph"] {
  icon-image:"vehicle/restrictions/speed55.png";
}

node[maxspeed="60"], node[maxspeed="60 mph"], node[traffic_sign="DE:274:60"], node[maxspeed="RU:urban"] {
  icon-image:"vehicle/restrictions/speed60.png";
}

node[maxspeed="65"], node[maxspeed="65 mph"] {
  icon-image:"vehicle/restrictions/speed65.png";
}

node[maxspeed="70"], node[maxspeed="70 mph"], node[traffic_sign="DE:274:70"] {
  icon-image:"vehicle/restrictions/speed70.png";
}

node[maxspeed="75"], node[maxspeed="75 mph"] {
  icon-image:"vehicle/restrictions/speed75.png";
}

node[maxspeed="80"], node[maxspeed="80 mph"], node[traffic_sign="DE:274:80"] {
  icon-image:"vehicle/restrictions/speed80.png";
}

node[maxspeed="90"], node[traffic_sign="DE:274:90"], node[maxspeed="RU:rural"] {
  icon-image:"vehicle/restrictions/speed90.png";
}

node[maxspeed="100"], node[traffic_sign="DE:274:100"] {
  icon-image:"vehicle/restrictions/speed100.png";
}

node[maxspeed="110"], node[traffic_sign="DE:274:110"], node[maxspeed="RU:motorway"] {
  icon-image:"vehicle/restrictions/speed110.png";
}

node[maxspeed="120"], node[traffic_sign="DE:274:120"] {
  icon-image:"vehicle/restrictions/speed120.png";
}

node[maxspeed="130"], node[traffic_sign="DE:274:130"] {
  icon-image:"vehicle/restrictions/speed130.png";
}

/* speed limit zones */

node[maxspeed="zone:30"][traffic_sign], node[traffic_sign="DE:274.1:30"], node[traffic_sign="DE:274.1[30]"] {
  icon-image:"vehicle/restrictions/zone30.png";
}

/* variable speed limits */

node[maxspeed="variable"] {
  icon-image:"vehicle/restrictions/speed_blank.png";
}

node[maxspeed="walk"] {
  icon-image:"vehicle/restrictions/speed5.png";
}

node[maxspeed="default"], node[traffic_sign="DE:282"] {
  icon-image:"vehicle/restrictions/speed_no.png";
}

Styles_MaxspeedIcons-style.mapcss, Styles_MaxspeedIcons.zip

Last modified 22 months ago Last modified on 2019-05-19T16:40:36+02:00

Attachments (1)

Download all attachments as: .zip