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

Fix plant_nursery pattern #2773

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 5 additions & 29 deletions landcover.mss
Original file line number Diff line number Diff line change
Expand Up @@ -130,42 +130,18 @@
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
}

[feature = 'landuse_vineyard'] {
[zoom >= 10] {
polygon-fill: @orchard;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[zoom >= 14] {
polygon-pattern-file: url('symbols/vineyard.png');
polygon-pattern-alignment: global;
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
}
}

[feature = 'landuse_orchard'] {
[zoom >= 10] {
polygon-fill: @orchard;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[zoom >= 14] {
polygon-pattern-file: url('symbols/orchard.png');
polygon-pattern-alignment: global;
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
}
}

[feature = 'landuse_orchard'],
[feature = 'landuse_vineyard'],
[feature = 'landuse_plant_nursery'] {
[zoom >= 10] {
polygon-fill: @orchard;
[way_pixels >= 4] { polygon-gamma: 0.75; }
[way_pixels >= 64] { polygon-gamma: 0.3; }
}
[zoom >= 14] {
polygon-pattern-file: url('symbols/plant_nursery.png');
[feature = 'landuse_orchard'] { polygon-pattern-file: url('symbols/orchard.png'); }
[feature = 'landuse_vineyard'] { polygon-pattern-file: url('symbols/vineyard.png'); }
[feature = 'landuse_plant_nursery'] { polygon-pattern-file: url('symbols/plant_nursery.png'); }
polygon-pattern-alignment: global;
[way_pixels >= 4] { polygon-pattern-gamma: 0.75; }
[way_pixels >= 64] { polygon-pattern-gamma: 0.3; }
Expand Down
15 changes: 13 additions & 2 deletions symbols/generating_patterns/plant_nursery.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
This pattern is generated by jsdotpattern script through this link:

http://www.imagico.de/map/jsdotpattern.php#x,128,jdp32360;gv,6,32,32;rd,1,0,0,pixel,0.125,4,4,0,jdp23814,749d6c,aedea3;
http://www.imagico.de/map/jsdotpattern.php#x,128,jdp32360;gv,8,32,32;rd,1,0,0,pixel,0.125,4,4,0,jdp23814,749d6c,aedea3;

Since exported SVG file is not properly handled by Mapnik, it was converted to PNG file with alpha channel.
distance: 8
pattern: regular rotated triangular
pattern size: 128

shape: pixel
offset: 4 4
scale: 0.125

render (inlined & aligned)

Since exported SVG file is not properly handled by Mapnik, it was converted
to PNG file with alpha channel with GIMP.
4 changes: 2 additions & 2 deletions symbols/generating_patterns/plant_nursery.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified symbols/plant_nursery.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.