| | 1 | |
| | 2 | == Description |
| | 3 | The map style "NodeBuildings" helps with viewing node buildings, which are in default paint style and displayed as grey buildings. This style shows node buildings as a dot, with customizable color (Style settings menu). |
| | 4 | |
| | 5 | Author of map style: https://www.openstreetmap.org/user/DNL852 |
| | 6 | |
| | 7 | |
| | 8 | == Code |
| | 9 | {{{ |
| | 10 | #!style type="mapcss" |
| | 11 | |
| | 12 | meta { |
| | 13 | title: "NodeBuildings"; |
| | 14 | description: "Shows a customizable dot on building nodes."; |
| | 15 | version: "1.[[revision]]_[[date]]"; |
| | 16 | author: "DNL852"; |
| | 17 | } |
| | 18 | |
| | 19 | setting::building_dot_color { |
| | 20 | type: color; |
| | 21 | label: tr("Building dot color"); |
| | 22 | default: #ff0000; |
| | 23 | } |
| | 24 | |
| | 25 | node[building] { |
| | 26 | icon-image: none; |
| | 27 | } |
| | 28 | |
| | 29 | node[building]::building_dot { |
| | 30 | symbol-shape: circle; |
| | 31 | symbol-size: 6; |
| | 32 | symbol-fill-color: setting("building_dot_color"); |
| | 33 | symbol-stroke-color: setting("building_dot_color"); |
| | 34 | symbol-stroke-width: 2; |
| | 35 | z-index: 100; |
| | 36 | } |
| | 37 | |
| | 38 | }}} |
| | 39 | |
| | 40 | https://raw.githubusercontent.com/DwynDwe/JOSM_MM_styles/refs/heads/main/NodeBuildings.mapcss |