Changes between Initial Version and Version 1 of Styles/ModifiedHighways


Ignore:
Timestamp:
2024-04-28T14:24:39+02:00 (21 months ago)
Author:
martien-vdg
Comment:

Create wiki page without additional info

Legend:

Unmodified
Added
Removed
Modified
  • Styles/ModifiedHighways

    v1 v1  
     1{{{
     2#!style type="mapcss"
     3
     4meta
     5{
     6    title: "Modified highways";
     7    description: "Highlight modified highways";
     8    version: "0.1.[[revision]]_[[date]]";
     9    author: "martien-176";
     10    link: "https://josm.openstreetmap.de/wiki/Styles/ModifiedHighways";
     11}
     12
     13setting::colordisplay {
     14  type: color;
     15  label: tr("Color used for displaying highways");
     16  default: green;
     17}
     18
     19setting::highway_opacity {
     20  type: double;
     21  label: tr("Choose opacity highways; default = 0.3");
     22  default: 0.3;
     23}
     24
     25setting::highway_node_width {
     26  type: double;
     27  label: tr("Choose modified node width; default: 10");
     28  default: 10;
     29}
     30
     31setting::highway_marking_width {
     32  type: double;
     33  label: tr("Choose modified marking width; default = 25");
     34  default: 25;
     35}
     36
     37way[highway]:modified::modified_layer,
     38node:modified < way[highway]::modified_layer
     39{
     40    width: setting("highway_marking_width");
     41    color: setting("colordisplay");
     42    opacity: setting("highway_opacity");
     43    z-index: -5;
     44}
     45
     46way[highway]:modified > node:modified, way[highway] > node:modified
     47{
     48    symbol-shape: circle;
     49    symbol-size: setting("highway_node_width");
     50    symbol-stroke-color: #00FF00; /* green */
     51    symbol-stroke-width: 2;
     52}
     53}}}