Changes between Version 1 and Version 2 of Styles/ColorWays


Ignore:
Timestamp:
2020-11-14T20:04:18+01:00 (5 years ago)
Author:
martien-vdg
Comment:

Add source code

Legend:

Unmodified
Added
Removed
Modified
  • Styles/ColorWays

    v1 v2  
    44
    55The buildings mapstyle has a style setting to choose the color and to vary the width of the outline of the building.
     6
     7{{{
     8#!style type="mapcss"
     9meta {
     10    title: "Color ways";
     11    description: "Choose your preferred color and line width of building outlines for better visibility on different backgrounds. Also highways and waterways have clearer colors";
     12    version: "0.1.[[revision]]_[[date]]";
     13    author: "Martien van de Griendt";
     14    link: "https://josm.openstreetmap.de/wiki/Styles/ColorWays";
     15}
     16
     17/* Setting Options */
     18
     19setting::colordisplay {
     20  type: color;
     21  label: tr("Color used for displaying buildings");
     22  default: green;
     23}
     24
     25setting::building_line_width {
     26  type: double;
     27  label: tr("Choose line width of building");
     28  default: 2;
     29}
     30
     31
     32/* Settings */
     33
     34/* Buildings */
     35
     36way[building] {
     37  color: setting("colordisplay");
     38}
     39
     40way[building] {
     41  width: setting("building_line_width");
     42}
     43
     44
     45/* Highways */
     46
     47way[highway=unclassified]
     48{
     49        width: 4;
     50    color: white;
     51}
     52
     53way[highway=track]
     54{
     55    width: 4;
     56    color: peru;
     57    dashes: 12,9;
     58    dashes-background-color: springgreen;
     59}
     60
     61way[highway=service]
     62{
     63    width: 3;
     64    color: aqua;
     65}
     66
     67way[highway=residential]
     68{
     69        width: 2;
     70    color: Aquamarine   ;
     71}
     72
     73/* Waterways */
     74
     75way[waterway=stream]
     76{
     77
     78        width: 2;
     79    color: DeepSkyBlue;  /* #00ace6 */
     80
     81}
     82
     83way[waterway=river]
     84{
     85
     86        width: 6;
     87
     88}
     89
     90
     91}}}