Skip to content

Commit

Permalink
Refactor water-features
Browse files Browse the repository at this point in the history
Dam, weir, lock:
* Add rendering for dam areas (supercedes and closes gravitystorm#227, based on code by
  @chrisfleming), dam and weir nodes, and lock_gate line
* Render weir in right layer (resolves gravitystorm#403)
* Change rendering of weir so it renders with small dashes
* Use marker instead of image for lock_gate node
* Add labels for dam nodes, dam areas, weir, and lock_gate
* Improve labels for dam lines and lock lines
* Remove labels for undocumented and less common waterway=lock

Groyne, breakwater:
* Render groyne/breakwater area the same color as groyne/breakwater way
  (resolves gravitystorm#893)
* Add label for groyne, breakwater, and pier (resolves gravitystorm#474)

Other:
* In general rewrite and clean up code
  • Loading branch information
matthijsmelissen committed Sep 27, 2014
1 parent 555c868 commit c4d42d2
Show file tree
Hide file tree
Showing 6 changed files with 308 additions and 162 deletions.
20 changes: 1 addition & 19 deletions amenity-points.mss
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@transportation-icon: #0092da;
@transportation-text: #0066ff;

/* Note that .points is also used in water-features.mss */
.points {
[feature = 'tourism_alpine_hut'][zoom >= 13] {
point-file: url('symbols/alpinehut.p.16.png');
Expand Down Expand Up @@ -146,14 +147,6 @@
point-placement: interior;
}

[feature = 'waterway_lock'],
[feature = 'lock_yes'] {
[zoom >= 15] {
point-file: url('symbols/lock_gate.png');
point-placement: interior;
}
}

[feature = 'man_made_mast'][zoom >= 17] {
point-file: url('symbols/communications.p.20.png');
point-placement: interior;
Expand Down Expand Up @@ -977,17 +970,6 @@
text-placement: interior;
}

[feature = 'waterway_lock'][zoom >= 15] {
text-name: "[name]";
text-size: 9;
text-dy: 10;
text-fill: #0066ff;
text-face-name: @book-fonts;
text-halo-radius: 1;
text-wrap-width: 70;
text-placement: interior;
}

[feature = 'leisure_marina'][zoom >= 15] {
text-name: "[name]";
text-size: 8;
Expand Down
Loading

0 comments on commit c4d42d2

Please sign in to comment.