Skip to content

Commit

Permalink
Add waterway-related barriers to 'Sport': dam, weir, rapids, water gates
Browse files Browse the repository at this point in the history
  • Loading branch information
noktoborus committed Mar 17, 2023
1 parent b7a3d1c commit e55b761
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Default.style/colors.mapcss
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,5 @@

@color_railway: #E6F8E0; // l: 0.1
@color_railway_dashes: #999; // l: 0.1

@color_waterway_dam: #2b2b2b;
2 changes: 2 additions & 0 deletions Default.style/colors_dark.mapcss
Original file line number Diff line number Diff line change
Expand Up @@ -144,3 +144,5 @@

@color_railway: #1E4810;
@color_railway_dashes: #7F7F7F;

@color_waterway_dam: #2b2b2b;
18 changes: 18 additions & 0 deletions Default.style/lines.mapcss
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,24 @@ line {
}
}

@if Sport
|z10-{
[waterway=dam],[waterway=weir] {
color: @color_waterway_dam;
width: 1px;

|z16- {
width: 2px;
|z20- {
text: eval(locTag("name"));
text-color: @color_waterway_dam;
width: 3px;
}
}
}
}
@endif // Sport

/******************** Line names *************************/

// road references
Expand Down
8 changes: 8 additions & 0 deletions Default.style/poi_dam.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions Default.style/poi_rapids.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions Default.style/poi_weir.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
28 changes: 28 additions & 0 deletions Default.style/points.mapcss
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,34 @@ node,area {
text: eval(locTag('name'));
text-color: @color_text_activity;
}

@if Sport
|z16-{
[waterway=dam] {
icon-image: "poi_dam.svg";
icon-tint: @color_waterway_dam;
text: eval(locTag("name"));
}

[waterway=lock_gate],[waterway=sluice_gate] {
icon-image: "poi_dam.svg";
icon-tint: @color_waterway_dam;
text: eval(locTag("name"));
}

[waterway=weir] {
icon-image: "poi_weir.svg";
icon-tint: @color_waterway_dam;
text: eval(locTag("name"));
}

[waterway=rapids] {
icon-image: "poi_rapids.svg";
icon-tint: @color_icon_tourism;
text: eval(locTag("name"));
}
}
@endif // Sport
@endif

|z15-[amenity=shelter] {
Expand Down

0 comments on commit e55b761

Please sign in to comment.