Skip to content

Commit

Permalink
Merge pull request #5489 from RudyTheDev/new-stylings
Browse files Browse the repository at this point in the history
Pattern stylings for forest and grass
  • Loading branch information
bhousel authored Nov 15, 2018
2 parents f4b9da4 + 1106e59 commit a19b30c
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 4 deletions.
20 changes: 17 additions & 3 deletions css/25_areas.css
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,39 @@ path.stroke.tag-natural,
path.stroke.tag-leisure-nature_reserve,
path.stroke.tag-leisure-pitch,
path.stroke.tag-leisure-park,
path.stroke.tag-barrier-hedge {
path.stroke.tag-barrier-hedge,
path.stroke.tag-landuse-forest,
path.stroke.tag-landuse-wood,
path.stroke.tag-landuse-grass {
stroke: rgb(140, 208, 95);
}
path.fill.tag-landuse,
path.fill.tag-natural,
path.fill.tag-leisure-nature_reserve,
path.fill.tag-leisure-pitch,
path.fill.tag-leisure-park {
path.fill.tag-leisure-park,
path.fill.tag-landuse-forest,
path.fill.tag-natural-wood,
path.fill.tag-landuse-grass {
stroke: rgba(140, 208, 95, 0.3);
fill: rgba(140, 208, 95, 0.3);
}
.preset-icon-fill-area.tag-landuse,
.preset-icon-fill-area.tag-natural,
.preset-icon-fill-area.tag-leisure-nature_reserve,
.preset-icon-fill-area.tag-leisure-pitch,
.preset-icon-fill-area.tag-leisure-park {
.preset-icon-fill-area.tag-leisure-park,
.preset-icon-fill-area.tag-landuse-forest,
.preset-icon-fill-area.tag-natural-wood,
.preset-icon-fill-area.tag-landuse-grass {
border-color: rgb(140, 208, 95);
background-color: rgba(140, 208, 95, 0.3);
}
.pattern-color-forest,
.pattern-color-wood,
.pattern-color-grass {
fill: rgba(140, 208, 95, 0.3);
}

/* Blue things */
path.stroke.tag-amenity-swimming_pool,
Expand Down
Binary file added dist/img/pattern/forest.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/img/pattern/grass.png
Loading
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 modules/svg/areas.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ export function svgAreas(projection, context) {
construction: 'construction',
farm: 'farmland',
farmland: 'farmland',
forest: 'forest',
wood: 'forest',
grave_yard: 'cemetery',
grass: 'grass',
meadow: 'meadow',
military: 'construction',
orchard: 'orchard',
Expand Down
6 changes: 5 additions & 1 deletion modules/svg/defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,13 +73,17 @@ export function svgDefs(context) {
.data([
// pattern name, pattern image name
['wetland', 'wetland'],
['scrub', 'wetland'],
['construction', 'construction'],
['cemetery', 'cemetery'],
['orchard', 'orchard'],
['farmland', 'farmland'],
['beach', 'dots'],
['scrub', 'dots'],
['meadow', 'dots']
['meadow', 'grass'],
['grass', 'grass'],
['forest', 'forest'],
['wood', 'forest']
])
.enter()
.append('pattern')
Expand Down

0 comments on commit a19b30c

Please sign in to comment.