wiki:Styles/ModifiedHighways

# Modified highways

This mapstyle highlights new and modified buildings. Never loose track of the buildings you mapped. Especially useful in areas with many objects.

See this animated gif for a demo.

https://raw.githubusercontent.com/martien-176/new-modified-buildings/main/modified-highways.gif

meta 
{
    title: "Modified highways";
    description: "Highlight modified highways";
    version: "0.1.2_2024-05-08";
    author: "martien-176";
    link: "https://josm.openstreetmap.de/wiki/Styles/ModifiedHighways";
}

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

setting::highway_opacity {
  type: double;
  label: tr("Choose opacity highways; default = 0.3");
  default: 0.3;
}

setting::highway_node_width {
  type: double;
  label: tr("Choose modified node width; default: 10");
  default: 10;
}

setting::highway_marking_width {
  type: double;
  label: tr("Choose modified marking width; default = 25");
  default: 25;
}

way[highway]:modified::modified_layer,
node:modified < way[highway]::modified_layer 
{
    width: setting("highway_marking_width"); 
    color: setting("colordisplay");
    opacity: setting("highway_opacity");
    z-index: -5;
}

way[highway]:modified > node:modified, way[highway] > node:modified
{
    symbol-shape: circle;
    symbol-size: setting("highway_node_width");
    symbol-stroke-color: #00FF00; /* green */
    symbol-stroke-width: 2;
}

Styles_ModifiedHighways-style.mapcss, Styles_ModifiedHighways.zip

Last modified 2 weeks ago Last modified on 2024-05-08T17:51:06+02:00
Note: See TracWiki for help on using the wiki.