Skip to content

Commit

Permalink
Merge pull request #3767 from jeisenbe/ridge-arete
Browse files Browse the repository at this point in the history
Add line rendering plus name labels for ridges and aretes
  • Loading branch information
pnorman authored Mar 26, 2020
2 parents 093b7f2 + cd13061 commit 42f457c
Show file tree
Hide file tree
Showing 6 changed files with 182 additions and 2 deletions.
4 changes: 2 additions & 2 deletions project.mml
Original file line number Diff line number Diff line change
Expand Up @@ -611,7 +611,7 @@ Layer:
(SELECT
way, "natural", man_made
FROM planet_osm_line
WHERE "natural" = 'cliff' OR man_made = 'embankment'
WHERE "natural" IN ('arete', 'cliff', 'ridge') OR man_made = 'embankment'
) AS cliffs
properties:
cache-features: true
Expand Down Expand Up @@ -1981,7 +1981,7 @@ Layer:
FROM planet_osm_line
WHERE (man_made IN ('pier', 'breakwater', 'groyne', 'embankment')
OR waterway IN ('dam', 'weir')
OR "natural" IN ('cliff'))
OR "natural" IN ('arete', 'cliff', 'ridge'))
AND name IS NOT NULL
) AS text_line
properties:
Expand Down
14 changes: 14 additions & 0 deletions style/landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -822,6 +822,18 @@
line-pattern-file: url('symbols/cliff2.svg');
}
}
[natural = 'ridge'][zoom >= 14] {
line-pattern-file: url('symbols/ridge-mid.svg');
[zoom >= 15] {
line-pattern-file: url('symbols/ridge2.svg');
}
}
[natural = 'arete'][zoom >= 14] {
line-pattern-file: url('symbols/arete-mid.svg');
[zoom >= 15] {
line-pattern-file: url('symbols/arete2.svg');
}
}
[man_made = 'embankment'][zoom >= 15]::man_made {
line-pattern-file: url('symbols/embankment.svg');
}
Expand Down Expand Up @@ -904,7 +916,9 @@
}

#text-line {
[feature = 'natural_arete'][zoom >= 15],
[feature = 'natural_cliff'][zoom >= 15],
[feature = 'natural_ridge'][zoom >= 15],
[feature = 'man_made_embankment'][zoom >= 15] {
text-name: "[name]";
text-halo-radius: @standard-halo-radius;
Expand Down
26 changes: 26 additions & 0 deletions symbols/arete-mid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
36 changes: 36 additions & 0 deletions symbols/arete2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions symbols/ridge-mid.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions symbols/ridge2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 42f457c

Please sign in to comment.