| | 1 | == Highlight new and modified buildings |
| | 2 | |
| | 3 | This mapstyle highlights new and modified buildings. Never loose track of the buildings you mapped. Especially useful in areas with many objects. |
| | 4 | |
| | 5 | See 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" |
| | 11 | meta { |
| | 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 | |
| | 19 | setting::building_line_width { |
| | 20 | type: double; |
| | 21 | label: tr("Choose line width of modified / new building"); |
| | 22 | default: 2; |
| | 23 | } |
| | 24 | |
| | 25 | setting::building_node_width { |
| | 26 | type: double; |
| | 27 | label: tr("Choose modified node width"); |
| | 28 | default: 10; |
| | 29 | } |
| | 30 | |
| | 31 | way[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 | |
| | 39 | way[building]:modified, way[building]:new |
| | 40 | { |
| | 41 | color: #ffffff; /* white */ |
| | 42 | dashes: 12,9; |
| | 43 | width: setting("building_line_width"); |
| | 44 | } |
| | 45 | |
| | 46 | way[building]:modified |
| | 47 | { |
| | 48 | dashes-background-color: #ff10e1; /* purple */ |
| | 49 | } |
| | 50 | |
| | 51 | way[building]:new |
| | 52 | { |
| | 53 | dashes-background-color: #0000ff; /* blue */ |
| | 54 | } |
| | 55 | |
| | 56 | |
| | 57 | }}} |