Skip to content

Commit

Permalink
Fix plant_nursery pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
kocio-pl committed Aug 23, 2017
1 parent 9cdab72 commit e7362d9
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 33 deletions.
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 (px aligned)

Since exported SVG file is not properly handled by Mapnik, it was converted
to PNG file (with convert) 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.

0 comments on commit e7362d9

Please sign in to comment.