Changes between Initial Version and Version 1 of Styles/NewModifiedBuildings


Ignore:
Timestamp:
2024-04-20T14:26:50+02:00 (21 months ago)
Author:
martien-vdg
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Styles/NewModifiedBuildings

    v1 v1  
     1== Highlight new and modified buildings
     2
     3This mapstyle highlights new and modified buildings. Never loose track of the buildings you mapped. Especially useful in areas with many objects.
     4
     5See this animated gif for a demo.
     6
     7[[Image(https://raw.githubusercontent.com/martien-176/new-modified-buildings/main/new-modified-buildings.gif,link=)]]
     8
     9{{{
     10#!style type="mapcss"
     11meta {
     12    title: "new-modified-buildings";
     13    version="1.[[revision]]_[[date]]";
     14    description: "Flags new and modified buildings. This mapstyle is partly inspired by another mapstyle named Modified Objects";
     15    author: "martien-176";
     16    link: "https://josm.openstreetmap.de/wiki/Styles/NewModifiedBuildings";;
     17}
     18
     19setting::building_line_width {
     20  type: double;
     21  label: tr("Choose line width of modified / new building");
     22  default: 2;
     23}
     24
     25setting::building_node_width {
     26  type: double;
     27  label: tr("Choose modified node width");
     28  default: 10;
     29}
     30
     31way[building]:modified > node:modified, way[building] > node:modified
     32{
     33    symbol-shape: circle;
     34    symbol-size: setting("building_node_width");
     35    symbol-stroke-color: #00FF00; /* green */
     36    symbol-stroke-width: 2;
     37}
     38
     39way[building]:modified, way[building]:new
     40{
     41    color: #ffffff; /* white */
     42    dashes: 12,9;
     43    width: setting("building_line_width");
     44}
     45
     46way[building]:modified
     47{
     48    dashes-background-color: #ff10e1; /* purple */
     49}
     50
     51way[building]:new
     52{
     53    dashes-background-color: #0000ff; /* blue */
     54}
     55
     56
     57}}}