| | 1 | {{{ |
| | 2 | #!style type="mapcss" |
| | 3 | meta { |
| | 4 | title: "Less obtrusive nodes"; |
| | 5 | description: "Make nodes smaller when zoomed out. This makes navigating easier when viewing a large area. Also hides icons and text accordingly."; |
| | 6 | version: "1"; |
| | 7 | author: "xeen"; |
| | 8 | link: "FIXME"; |
| | 9 | min-josm-version: "5000"; |
| | 10 | } |
| | 11 | |
| | 12 | meta[lang=de] { |
| | 13 | title: "Unaufdringlichere Nodes"; |
| | 14 | description: "Kleinere Nodes auf niedrigen Zoomstufen. Erleichert Orientierung beim Betrachten eines größeren Bereichs. Gleiches gilt für Icons und Text."; |
| | 15 | } |
| | 16 | |
| | 17 | |
| | 18 | |
| | 19 | /* size nodes with zoom level *****************************************/ |
| | 20 | |
| | 21 | canvas { |
| | 22 | default-points: false; |
| | 23 | } |
| | 24 | |
| | 25 | node|z16- { |
| | 26 | symbol-size:1; |
| | 27 | symbol-shape: square; |
| | 28 | symbol-stroke-color: #ffff00; |
| | 29 | symbol-fill-color: #ffff00; |
| | 30 | } |
| | 31 | |
| | 32 | node:connection { |
| | 33 | symbol-fill-color: none; |
| | 34 | } |
| | 35 | |
| | 36 | node|z17 { symbol-size: 2; } |
| | 37 | way > node|z17 { symbol-size: 1; } |
| | 38 | node|z17:connection { symbol-size: 2; } |
| | 39 | |
| | 40 | node|z18 { symbol-size: 4; } |
| | 41 | way > node|z18 { symbol-size: 2; } |
| | 42 | node|z18:connection { symbol-size: 4; } |
| | 43 | |
| | 44 | node|z19-20 { symbol-size: 5; } |
| | 45 | way > node|z19-20 { symbol-size: 3; } |
| | 46 | node|z19-20:connection { symbol-size: 5; } |
| | 47 | |
| | 48 | node|z21-22 { symbol-size: 6; } |
| | 49 | way > node|z21-22 { symbol-size: 4; } |
| | 50 | node|z21-221:connection { symbol-size: 6; } |
| | 51 | |
| | 52 | node|z23- { symbol-size: 7; } |
| | 53 | way > node|z23- { symbol-size: 5; } |
| | 54 | node|z23-:connection { symbol-size: 7; } |
| | 55 | |
| | 56 | |
| | 57 | |
| | 58 | /* Show text only on high zoom levels *********************************/ |
| | 59 | |
| | 60 | node|z1-18 { |
| | 61 | text: ""; |
| | 62 | } |
| | 63 | |
| | 64 | node|z19- { |
| | 65 | text-anchor-horizontal: center; |
| | 66 | text-anchor-vertical: bottom; |
| | 67 | text-offset-y: -8; |
| | 68 | font-size: 8; |
| | 69 | } |
| | 70 | |
| | 71 | node|z20 { |
| | 72 | font-size: 9; |
| | 73 | text-offset-y: -10; |
| | 74 | } |
| | 75 | |
| | 76 | node|z21- { |
| | 77 | font-size: 10; |
| | 78 | text-offset-y: -12; |
| | 79 | } |
| | 80 | |
| | 81 | node|z22- { |
| | 82 | font-size: 11; |
| | 83 | } |
| | 84 | |
| | 85 | |
| | 86 | |
| | 87 | /* hide icons and turn restrictions on low zoom ***********************/ |
| | 88 | |
| | 89 | node|z1-17, relation|z1-17[type=restriction] { |
| | 90 | icon-image: none; |
| | 91 | } |
| | 92 | }}} |