wiki:Styles/NewModifiedBuildings

Version 3 (modified by martien-vdg, 20 months ago) ( diff )

Debugging an error

Highlight new and modified buildings

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/new-modified-buildings.gif

meta {
    title: "new-modified-buildings";
    version="1.11_2024-05-08";
    description: "Flags new and modified buildings. This mapstyle is partly inspired by another mapstyle named Modified Objects";
    author: "martien-176";
    link: "https://josm.openstreetmap.de/wiki/Styles/NewModifiedBuildings";
}

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

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

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

way[building]:modified, way[building]:new
{
    color: #ffffff; /* white */
    dashes: 12,9;
    width: setting("building_line_width");
}

way[building]:modified
{
    dashes-background-color: #ff10e1; /* purple */
}

way[building]:new
{
    dashes-background-color: #0000ff; /* blue */
}

Styles_NewModifiedBuildings-style.mapcss, Styles_NewModifiedBuildings.zip

Note: See TracWiki for help on using the wiki.