Changes between Initial Version and Version 1 of Styles/LessObtrusiveNodes


Ignore:
Timestamp:
2013-01-07T00:51:48+01:00 (13 years ago)
Author:
xeen
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Styles/LessObtrusiveNodes

    v1 v1  
     1{{{
     2#!style type="mapcss"
     3meta {
     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
     12meta[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
     21canvas {
     22  default-points: false;
     23}
     24
     25node|z16- {
     26  symbol-size:1;
     27  symbol-shape: square;
     28  symbol-stroke-color: #ffff00;
     29  symbol-fill-color: #ffff00;
     30}
     31
     32node:connection {
     33  symbol-fill-color: none;
     34}
     35
     36node|z17               { symbol-size: 2; }
     37way > node|z17         { symbol-size: 1; }
     38node|z17:connection    { symbol-size: 2; }
     39
     40node|z18               { symbol-size: 4; }
     41way > node|z18         { symbol-size: 2; }
     42node|z18:connection    { symbol-size: 4; }
     43
     44node|z19-20              { symbol-size: 5; }
     45way > node|z19-20        { symbol-size: 3; }
     46node|z19-20:connection   { symbol-size: 5; }
     47
     48node|z21-22              { symbol-size: 6; }
     49way > node|z21-22        { symbol-size: 4; }
     50node|z21-221:connection   { symbol-size: 6; }
     51
     52node|z23-              { symbol-size: 7; }
     53way > node|z23-        { symbol-size: 5; }
     54node|z23-:connection   { symbol-size: 7; }
     55
     56
     57
     58/* Show text only on high zoom levels *********************************/
     59
     60node|z1-18 {
     61  text: "";
     62}
     63
     64node|z19- {
     65  text-anchor-horizontal: center;
     66  text-anchor-vertical: bottom;
     67  text-offset-y: -8;
     68  font-size: 8;
     69}
     70
     71node|z20 {
     72  font-size: 9;
     73  text-offset-y: -10;
     74}
     75
     76node|z21- {
     77  font-size: 10;
     78  text-offset-y: -12;
     79}
     80
     81node|z22- {
     82  font-size: 11;
     83}
     84
     85
     86
     87/* hide icons and turn restrictions on low zoom ***********************/
     88
     89node|z1-17, relation|z1-17[type=restriction] {
     90  icon-image: none;
     91}
     92}}}