Skip to content

Commit

Permalink
Merge pull request #4458 from pitdicker/vectorize_hatches
Browse files Browse the repository at this point in the history
Vectorize hatches
  • Loading branch information
pnorman committed Sep 12, 2021
2 parents 871804d + 6a3c6fb commit 6a4cd4b
Show file tree
Hide file tree
Showing 34 changed files with 94 additions and 226 deletions.
4 changes: 4 additions & 0 deletions patterns/allotments.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions patterns/danger_red_hatch.svg
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 patterns/dog_park.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions patterns/grave_yard_christian.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions patterns/grave_yard_generic.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions patterns/grave_yard_jewish.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions patterns/grave_yard_muslim.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions patterns/grey_vertical_hatch.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions patterns/intermittent_water.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions patterns/military_red_hatch.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions patterns/orchard.svg
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 patterns/plant_nursery.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions patterns/vineyard.svg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 28 additions & 18 deletions style/landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[zoom >= 13] {
polygon-pattern-file: url('symbols/vineyard.png');
polygon-pattern-file: url('patterns/vineyard.svg');
polygon-pattern-alignment: global;
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
Expand All @@ -147,7 +147,7 @@
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[zoom >= 13] {
polygon-pattern-file: url('symbols/orchard.png');
polygon-pattern-file: url('patterns/orchard.svg');
polygon-pattern-alignment: global;
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
Expand All @@ -161,7 +161,7 @@
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[zoom >= 13] {
polygon-pattern-file: url('symbols/plant_nursery.png');
polygon-pattern-file: url('patterns/plant_nursery.svg');
polygon-pattern-opacity: 0.6;
polygon-pattern-alignment: global;
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
Expand All @@ -176,7 +176,7 @@
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[zoom >= 13] {
polygon-pattern-file: url('symbols/plant_nursery.png');
polygon-pattern-file: url('patterns/plant_nursery.svg');
polygon-pattern-alignment: global;
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
Expand All @@ -191,10 +191,10 @@
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[zoom >= 13] {
[religion = 'jewish'] { polygon-pattern-file: url('symbols/grave_yard_jewish.svg'); }
[religion = 'christian'] { polygon-pattern-file: url('symbols/grave_yard_christian.svg'); }
[religion = 'muslim'] { polygon-pattern-file: url('symbols/grave_yard_muslim.svg'); }
[religion = 'INT-generic'] { polygon-pattern-file: url('symbols/grave_yard_generic.svg'); }
[religion = 'jewish'] { polygon-pattern-file: url('patterns/grave_yard_jewish.svg'); }
[religion = 'christian'] { polygon-pattern-file: url('patterns/grave_yard_christian.svg'); }
[religion = 'muslim'] { polygon-pattern-file: url('patterns/grave_yard_muslim.svg'); }
[religion = 'INT-generic'] { polygon-pattern-file: url('patterns/grave_yard_generic.svg'); }
[religion = 'jewish'],
[religion = 'christian'],
[religion = 'muslim'],
Expand All @@ -217,7 +217,9 @@
}

[feature = 'amenity_prison'][zoom >= 10][way_pixels > 75] {
polygon-pattern-file: url('symbols/grey_vertical_hatch.png');
polygon-fill: #8e8e8e;
polygon-opacity: 0.14;
polygon-pattern-file: url('patterns/grey_vertical_hatch.svg');
polygon-pattern-alignment: global;
line-color: #888;
line-width: 3;
Expand Down Expand Up @@ -270,7 +272,7 @@
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[zoom >= 16] {
polygon-pattern-file: url('symbols/dog_park.png');
polygon-pattern-file: url('patterns/dog_park.svg');
polygon-pattern-alignment: global;
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
Expand All @@ -291,7 +293,7 @@
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[zoom >= 13] {
polygon-pattern-file: url('symbols/allotments.png');
polygon-pattern-file: url('patterns/allotments.svg');
polygon-pattern-alignment: global;
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
Expand Down Expand Up @@ -806,23 +808,31 @@

#landuse-overlay {
[landuse = 'military'][zoom >= 8][way_pixels > 900],
[landuse = 'military'][zoom >= 13],
[military = 'danger_area'][zoom >= 9] {
polygon-pattern-file: url('symbols/military_red_hatch.png');
[landuse = 'military'][zoom >= 13] {
polygon-fill: #ff5555;
polygon-opacity: 0.08;
polygon-pattern-file: url('patterns/military_red_hatch.svg');
polygon-pattern-alignment: global;
line-color: @military;
line-opacity: 0.24;
line-width: 1.0;
line-offset: -0.5;
[zoom >= 15] {
[military = 'danger_area'][zoom >= 9] {
polygon-pattern-file: url('symbols/danger_red_hatch.png');
line-opacity: 0.2;
}
line-width: 2;
line-offset: -1.0;
}
}

[military = 'danger_area'][zoom >= 9] {
polygon-fill: #ff5555;
polygon-opacity: 0.1;
polygon-pattern-file: url('patterns/danger_red_hatch.svg');
polygon-pattern-alignment: global;
line-color: @military;
line-opacity: 0.2;
line-width: 2;
line-offset: -1.0;
}
}

#cliffs {
Expand Down
2 changes: 1 addition & 1 deletion style/water.mss
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
[way_pixels >= 64] { polygon-gamma: 0.6; }
}
[int_intermittent = 'yes'] {
polygon-pattern-file: url('symbols/intermittent_water.png');
polygon-pattern-file: url('patterns/intermittent_water.svg');
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.6; }
}
Expand Down
Binary file removed symbols/allotments.png
Binary file not shown.
Binary file removed symbols/danger_red_hatch.png
Binary file not shown.
Binary file removed symbols/dog_park.png
Binary file not shown.
3 changes: 0 additions & 3 deletions symbols/generating_patterns/allotments.md

This file was deleted.

38 changes: 0 additions & 38 deletions symbols/generating_patterns/allotments.svg

This file was deleted.

5 changes: 0 additions & 5 deletions symbols/generating_patterns/plant_nursery.md

This file was deleted.

9 changes: 0 additions & 9 deletions symbols/generating_patterns/plant_nursery.svg

This file was deleted.

38 changes: 0 additions & 38 deletions symbols/grave_yard_christian.svg

This file was deleted.

38 changes: 0 additions & 38 deletions symbols/grave_yard_generic.svg

This file was deleted.

38 changes: 0 additions & 38 deletions symbols/grave_yard_jewish.svg

This file was deleted.

38 changes: 0 additions & 38 deletions symbols/grave_yard_muslim.svg

This file was deleted.

Binary file removed symbols/grey_vertical_hatch.png
Binary file not shown.
Binary file removed symbols/intermittent_river.png
Binary file not shown.
Binary file removed symbols/intermittent_water.png
Binary file not shown.
Binary file removed symbols/military_red_hatch.png
Diff not rendered.
Binary file removed symbols/mud.png
Diff not rendered.
Binary file removed symbols/orchard.png
Diff not rendered.
Binary file removed symbols/plant_nursery.png
Diff not rendered.
Binary file removed symbols/vineyard.png
Diff not rendered.

0 comments on commit 6a4cd4b

Please sign in to comment.