wiki:Styles/ColorWays

Version 2 (modified by martien-vdg, 3 years ago) ( diff )

Add source code

Improve the readability of ways

These mapstyles improve the visibility of ways (highways, waterways, buildings). Highways and waterways have colors that are more pregnant. Very handy for validators that are inspecting an area when zoomed out. Or for areas that are full of other objects.

The buildings mapstyle has a style setting to choose the color and to vary the width of the outline of the building.

meta {
    title: "Color ways";
    description: "Choose your preferred color and line width of building outlines for better visibility on different backgrounds. Also highways and waterways have clearer colors";
    version: "0.1.34_2024-02-27";
    author: "Martien van de Griendt";
    link: "https://josm.openstreetmap.de/wiki/Styles/ColorWays";
}

/* Setting Options */

setting::colordisplay {
  type: color;
  label: tr("Color used for displaying buildings");
  default: green;
}

setting::building_line_width {
  type: double;
  label: tr("Choose line width of building");
  default: 2;
}


/* Settings */

/* Buildings */

way[building] {
  color: setting("colordisplay");
}

way[building] {
  width: setting("building_line_width");
}


/* Highways */

way[highway=unclassified]
{
        width: 4;
    color: white;
}

way[highway=track]
{
    width: 4;
    color: peru;
    dashes: 12,9;
    dashes-background-color: springgreen;
}

way[highway=service]
{
    width: 3;
    color: aqua;
}

way[highway=residential]
{
        width: 2;
    color: Aquamarine   ;
}

/* Waterways */

way[waterway=stream]
{

        width: 2;
    color: DeepSkyBlue;  /* #00ace6 */ 

}

way[waterway=river]
{

        width: 6;

}


Styles_ColorWays-style.mapcss, Styles_ColorWays.zip

Note: See TracWiki for help on using the wiki.