Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Small glaciers are dominated by borders and look like lakes #1631

Closed
matkoniecz opened this issue Jul 3, 2015 · 1 comment
Closed

Small glaciers are dominated by borders and look like lakes #1631

matkoniecz opened this issue Jul 3, 2015 · 1 comment

Comments

@matkoniecz
Copy link
Contributor

See for example Alps:

45

Obvious solution of basing lines width on way_pixels is not working as in many places glaciers of different sizes are grouped together and different styling is not looking well.

selection_001

  [natural = 'glacier']::natural {
    [zoom >= 6] {
      polygon-fill: @glacier;
      [way_pixels >= 10] {
        line-dasharray: 4,2;
        line-color: @glacier-line;
        line-width: 0.1;
        [way_pixels >= 20] {
          line-width: 0.2;
          [way_pixels >= 30] {
            line-width: 0.3;
            [way_pixels >= 40] {
              line-width: 1.5;
            }
          }
        }
      }
      [zoom >= 8] {
        polygon-pattern-file: url('symbols/glacier.png');
      }
    }
  }
@matkoniecz matkoniecz added this to the New features milestone Jul 3, 2015
@matkoniecz matkoniecz changed the title Small glaciers are dominated by lines and look like lakes Small glaciers are dominated by borders and look like lakes Jul 3, 2015
@imagico
Copy link
Collaborator

imagico commented Jul 4, 2015

You could reduce the line width in general with decreasing zoom level.

At the lower zoom levels the dashed line signature is somewhat adverse to map clarity in areas with detailed mapping - a solid and thinner line leads to a calmer, less noisy appearance:

z=8 alps
z=6 iceland

Using:

  [natural = 'glacier']::natural {
    [zoom >= 6] {
      line-width: 0.75;
      line-color: @glacier-line;
      polygon-fill: @glacier;
      [zoom >= 8] {
        line-width: 1.0;
        polygon-pattern-file: url('symbols/glacier.png');
        [zoom >= 10] {
          line-dasharray: 4,2;
          line-width: 1.5;
        }
      }
    }
  }

Zoom level limits are of course somewhat hairy here - it is difficult to do justice to both large high latitude polar region glaciers and small low latitude alpine glaciers.

Another option would be to use preprocessed data with dissolved inner boundaries at the lower zooms.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants